ENTITY chemical_compound SUBTYPE OF (substance); DERIVE id_owner_organization : SET [0:?] OF applied_organization_assignment := bag_to_set(QUERY(temp <* USEDIN(SELF,'PERSON_ORGANIZATION_ASSIGNMENT_MIM.'+ 'APPLIED_ORGANIZATION_ASSIGNMENT.ITEMS') | (temp.role.name = 'id owner') )); id_owner_pao : SET [0:?] OF applied_person_and_organization_assignment := bag_to_set(QUERY(temp <* USEDIN(SELF,'PERSON_ORGANIZATION_ASSIGNMENT_MIM.'+ 'APPLIED_PERSON_AND_ORGANIZATION_ASSIGNMENT.ITEMS') | (temp.role.name = 'id owner') )); WHERE wr1: SIZEOF([ 'chemical compound' ] * types_of_product(SELF))= 1; wr2: ((SIZEOF(id_owner_organization)+SIZEOF(id_owner_pao)) = 1); END_ENTITY; -- chemical_compound |
Entity data types and their attributesproductid: identifier; name: label; (OPT) description: text; frame_of_reference: SET [1:?] OF product_context; product_armx (RT) (DER) frame_of_reference: SET [1:?] OF product_context; substance - chemical_compound (DER) id_owner_organization: SET [0:?] OF applied_organization_assignment; (DER) id_owner_pao: SET [0:?] OF applied_person_and_organization_assignment; |
Global rules for this entity data type- |
public interface EChemical_compound extends ESubstanceid_owner_organization (derived attribute)AApplied_organization_assignment getId_owner_organization(EChemical_compound type)boolean testId_owner_organization(EChemical_compound type) id_owner_pao (derived attribute)AApplied_person_and_organization_assignment getId_owner_pao(EChemical_compound type)boolean testId_owner_pao(EChemical_compound type) |
public class CChemical_compound implements EChemical_compoundstatic EAttribute attributeId_owner_organization(EChemical_compound type)static int usedinId_owner_organization(EChemical_compound type, EApplied_organization_assignment instance, ASdaiModel domain, AChemical_compound result) static EAttribute attributeId_owner_pao(EChemical_compound type) static int usedinId_owner_pao(EChemical_compound type, EApplied_person_and_organization_assignment instance, ASdaiModel domain, AChemical_compound result) |
public class AChemical_compound extends AEntitypublic EChemical_compound getByIndex(int index)public EChemical_compound getCurrentMember(SdaiIterator it) |