(*
 * $Id$
 *
 * JSDAI(TM), a way to implement STEP, ISO 10303
 * Copyright (C) 1997-2008, LKSoftWare GmbH, Germany
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License
 * version 3 as published by the Free Software Foundation (AGPL v3).
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * JSDAI is a registered trademark of LKSoftWare GmbH, Germany
 * This software is also available under commercial licenses.
 * See also http://www.jsdai.net/
 *)

(*schema_mapping sequential_laminate_assembly_design(Sequential_laminate_assembly_design_arm, Sequential_laminate_assembly_design_mim);*)

entity_mapping Adjacent_stratum_surface_embedded_sequential_laminate_surface_definition(Adjacent_stratum_surface_embedded_sequential_laminate_surface_definition, shape_aspect_relationship);

mapping_constraints;
{shape_aspect_relationship
shape_aspect_relationship.name = 'adjacent stratum surface embedded sequential laminate surface'}

end_mapping_constraints;

end_entity_mapping;


entity_mapping Adjacent_stratum_surface_embedded_physical_component_surface_definition(Adjacent_stratum_surface_embedded_physical_component_surface_definition, 
			(/SUBTYPE(Adjacent_stratum_surface_embedded_sequential_laminate_surface_definition)/)
		)
extended;

end_entity_mapping;


entity_mapping Derived_laminate_assignment_armx(Derived_laminate_assignment_armx, derived_laminate_assignment);

	mapping_constraints;
				derived_laminate_assignment <=
				property_definition_relationship
	end_mapping_constraints;
	
attribute_mapping oem_requirement(oem_requirement, $PATH, Interconnect_module_stratum_assembly_relationship);

					derived_laminate_assignment <=
					property_definition_relationship
					property_definition_relationship.relating_property_definition ->
					property_definition
					property_definition.definition ->
					characterized_definition = characterized_product_definition
					characterized_product_definition = product_definition_relationship
					product_definition_relationship =>
					product_definition_usage =>
					assembly_component_usage			
					
end_attribute_mapping;

attribute_mapping oem_requirement(oem_requirement, $PATH, Stratum_technology_occurrence_armx);

					derived_laminate_assignment <=
					property_definition_relationship
					property_definition_relationship.relating_property_definition ->
					property_definition =>
					stratum_technology_occurrence
					
end_attribute_mapping;

attribute_mapping solution_definition(solution_definition, $PATH, Sequential_laminate_assembly_relationship);					

					derived_laminate_assignment <=
					property_definition_relationship
					property_definition_relationship.related_property_definition ->
					property_definition
					property_definition.definition ->
					characterized_definition = characterized_product_definition
					characterized_product_definition = product_definition_relationship
					product_definition_relationship =>
					product_definition_usage =>
					assembly_component_usage

end_attribute_mapping;

end_entity_mapping;


entity_mapping Interconnect_module_component_stratum_based_terminal(Interconnect_module_component_stratum_based_terminal, physical_component_terminal);

mapping_constraints;
physical_component_terminal <=
component_terminal <=
component_feature <=
shape_aspect
{shape_aspect
shape_aspect.description = 'interconnect module component stratum based terminal'}

end_mapping_constraints;

attribute_mapping definition(definition, $PATH, Interconnect_module_stratum_based_terminal_armx);
physical_component_terminal <=
component_terminal <=
component_feature <=
shape_aspect
shape_aspect <-
shape_aspect_relationship.related_shape_aspect
shape_aspect_relationship
{shape_aspect_relationship.description = 'interconnect module component stratum based terminal definition'}
shape_aspect_relationship.relating_shape_aspect ->
shape_aspect
shape_aspect =>
interconnect_module_terminal =>
interconnect_module_stratum_based_terminal

end_attribute_mapping;

end_entity_mapping;

entity_mapping Interconnect_module_component_terminal(Interconnect_module_component_terminal, 
			(/SUBTYPE(Interconnect_module_component_stratum_based_terminal)/)
		)
extended;

end_entity_mapping;

entity_mapping Interconnect_module_product_assembly_view_fabrication_joint(Interconnect_module_product_assembly_view_fabrication_joint, sequential_laminate_passage_based_fabrication_joint);

mapping_constraints;
sequential_laminate_passage_based_fabrication_joint <=
shape_aspect
{shape_aspect.description = 'interconnect module product assembly view fabrication joint'}

end_mapping_constraints;

attribute_mapping joined_terminal(joined_terminal, $PATH, Interconnect_module_component_stratum_based_terminal);
sequential_laminate_passage_based_fabrication_joint <=
shape_aspect <-
shape_aspect_relationship.relating_shape_aspect
shape_aspect_relationship
shape_aspect_relationship.related_shape_aspect ->
shape_aspect
{shape_aspect.description = 'interconnect module component stratum based terminal'}
shape_aspect =>
component_feature =>
component_terminal =>
physical_component_terminal

end_attribute_mapping;

end_entity_mapping;

entity_mapping Interconnect_module_stratum_based_terminal_armx(Interconnect_module_stratum_based_terminal_armx, interconnect_module_stratum_based_terminal);

mapping_constraints;
interconnect_module_stratum_based_terminal <=
interconnect_module_terminal <=
shape_aspect
{shape_aspect
shape_aspect.of_shape ->
product_definition_shape <=
property_definition
{property_definition.name = 'interconnect module'}}

end_mapping_constraints;

end_entity_mapping;

(* Taken from AIM
entity_mapping Material_identification(Material_identification, material_designation)
extended;

attribute_mapping items(items, $PATH, Assembly_bond_definition_armx);
 characterized_definition
				characterized_definition = product_definition
				product_definition
				
end_attribute_mapping;

end_entity_mapping;
*)

entity_mapping requirement_assignment_armx(requirement_assignment_armx, requirement_assignment)
extended;

attribute_mapping assigned_to(assigned_to, , Derived_laminate_assignment_armx);

					requirement_assigned_item *> slad_requirement_assigned_item
					slad_requirement_assigned_item = 
					derived_laminate_assignment
				
end_attribute_mapping;

attribute_mapping assigned_to(assigned_to, , Sequential_laminate_assembly_relationship);

					requirement_assigned_item *> slad_requirement_assigned_item
					slad_requirement_assigned_item = 
					assembly_component_usage
				
end_attribute_mapping;

end_entity_mapping;


entity_mapping Sequential_laminate_assembly_relationship(Sequential_laminate_assembly_relationship, assembly_component_usage);

	mapping_constraints;
			assembly_component_usage <=
			product_definition_usage <=
			product_definition_relationship
			{product_definition_relationship.name = 'sequential laminate assembly relationship'}
	end_mapping_constraints;
	
attribute_mapping assembly(assembly, $PATH, Sequential_laminate_stackup_definition_armx);

			assembly_component_usage <=
			product_definition_usage <=
			product_definition_relationship
			product_definition_relationship.relating_product_definition ->
			product_definition =>
			sequential_laminate_stackup_definition
					
end_attribute_mapping;

attribute_mapping component(component, $PATH, Sequential_laminate_stackup_component_armx);					

			assembly_component_usage <=
			product_definition_usage <=
			product_definition_relationship
			product_definition_relationship.relating_product_definition ->
			product_definition =>
			component_definition =>
			assembly_component =>
			physical_component =>
			sequential_laminate_stackup_component

end_attribute_mapping;

end_entity_mapping;


entity_mapping Sequential_laminate_stackup_component_armx(Sequential_laminate_stackup_component_armx, sequential_laminate_stackup_component);

	mapping_constraints;
			sequential_laminate_stackup_component <=
			physical_component <= 
			assembly_component <=
			component_definition <=
			product_definition
	end_mapping_constraints;

end_entity_mapping;


entity_mapping Sequential_laminate_stackup_definition_armx(Sequential_laminate_stackup_definition_armx, sequential_laminate_stackup_definition);

	mapping_constraints;
			sequential_laminate_stackup_definition <=
			product_definition
	end_mapping_constraints;

attribute_mapping associated_stratum_stack(associated_stratum_stack, $PATH, Design_stack_model_armx);					

			sequential_laminate_stackup_definition <=
			product_definition
			characterized_product_definition = product_definition
			characterized_definition = characterized_product_definition					
			characterized_definition <-
			property_definition.definition
			property_definition
			property_definition <-
			property_definition_relationship.relating_property_definition
			property_definition_relationship
			{property_definition_relationship
			property_definition_relationship.name = 'associated stratum stack'}
			property_definition_relationship.related_property_definition ->
			property_definition =>
			part_template_definition =>
			stratum_stack_model =>
			design_stack_model

end_attribute_mapping;

attribute_mapping associated_stratum_stack(associated_stratum_stack, $PATH, Stratum_sub_stack_armx);					

			sequential_laminate_stackup_definition <=
			product_definition
			characterized_product_definition = product_definition
			characterized_definition = characterized_product_definition					
			characterized_definition <-
			property_definition.definition
			property_definition
			property_definition <-
			property_definition_relationship.relating_property_definition
			property_definition_relationship
			{property_definition_relationship
			property_definition_relationship.name = 'associated stratum stack'}
			property_definition_relationship.related_property_definition ->
			property_definition =>
			product_definition_shape =>
			part_template_definition =>			
			stratum_sub_stack

end_attribute_mapping;
	
end_entity_mapping;


entity_mapping Stackup_requirement_to_design_relationship(Stackup_requirement_to_design_relationship, product_definition_relationship);

	mapping_constraints;
			product_definition_relationship
			{product_definition_relationship.name = 'derived stratum relationship'}
	end_mapping_constraints;
	
attribute_mapping related_product_definition(related_product_definition, $PATH, Sequential_laminate_stackup_definition_armx);

			product_definition_relationship
			product_definition_relationship.related_product_definition ->
			product_definition =>
			sequential_laminate_stackup_definition
					
end_attribute_mapping;

attribute_mapping relating_product_definition(relating_product_definition, $PATH, Interconnect_module);					

			product_definition_relationship
			product_definition_relationship.relating_product_definition ->
			product_definition =>
			physical_unit

end_attribute_mapping;

end_entity_mapping;

(*end_schema_mapping;*)
