(*
 * $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/
 *)

(*
   Derived from ISO TC184/SC4/WG12 N - ISO/CD-TS 10303-xxxx Design specific assignment to assembly usage view - EXPRESS ARM
   by LKSoftWare GmbH for implementation purpose within IDA-STEP(TM)
*)

SCHEMA Design_specific_assignment_to_assembly_usage_view_xim;

USE FROM Assembly_module_with_subassembly_xim;

USE FROM Assembly_module_with_interconnect_component_xim;

	SUBTYPE_CONSTRAINT dsatauv_component_feature_to_physical_usage_view_assignment_subtypes FOR Component_feature_to_physical_usage_view_assignment;     
		ONEOF (Component_terminal_to_assembly_module_interface_terminal_assignment,
		 Component_terminal_to_pca_terminal_assignment);
	END_SUBTYPE_CONSTRAINT;

	SUBTYPE_CONSTRAINT dsatauv_physical_component_terminal_armx_subtypes FOR Physical_component_terminal_armx; 
		(ONEOF (Assembly_module_component_terminal,
		 Bare_die_component_terminal,
		 Interconnect_component_join_terminal,
		 Interconnect_module_component_terminal,
		 Minimally_defined_component_terminal,
		 Packaged_component_join_terminal));
	END_SUBTYPE_CONSTRAINT;

	TYPE pca_interface_select = SELECT
	    (Interconnect_module_component_terminal,
	     Physical_component_interface_terminal_armx,
	     Assembly_module_component_terminal);
  	END_TYPE;

  ENTITY Component_terminal_to_assembly_module_interface_terminal_assignment
    (* CONNOTATIONAL *) SUBTYPE OF (Component_feature_to_physical_usage_view_assignment);
    SELF\Component_feature_to_physical_usage_view_assignment.defined_part_feature RENAMED usage_view_terminal : Assembly_module_interface_terminal_armx;
    SELF\Component_feature_to_physical_usage_view_assignment.assigned_design_object RENAMED assigned_terminal : pca_interface_select;
    UNIQUE
      UR1 : usage_view_terminal;
  END_ENTITY;

  ENTITY Component_terminal_to_pca_terminal_assignment
    (* CONNOTATIONAL *) SUBTYPE OF (Component_feature_to_physical_usage_view_assignment);
    	SELF\Component_feature_to_physical_usage_view_assignment.defined_part_feature RENAMED usage_view_terminal : Pca_terminal;
    	SELF\Component_feature_to_physical_usage_view_assignment.assigned_design_object RENAMED assigned_terminal : pca_interface_select;
    UNIQUE
      UR1 : usage_view_terminal;
  END_ENTITY;

END_SCHEMA;


