ENTITY characterized_chain_based_item_within_representation SUBTYPE OF (characterized_item_within_representation); nodes : LIST [2:?] OF UNIQUE representation; undirected_link : LIST [1:?] OF UNIQUE chained_representation_link; DERIVE root : representation := nodes[1]; SELF\characterized_item_within_representation.rep RENAMED leaf : representation := nodes[HIINDEX(nodes)]; directed_link : LIST [1:?] OF representation_relationship := get_directed_link(nodes, undirected_link); WHERE wr1: root :=: directed_link[1]\representation_relationship.rep_1; wr2: leaf :=: directed_link[HIINDEX(undirected_link)]\representation_relationship.rep_2; wr3: SIZEOF(nodes) :=: SIZEOF(undirected_link) + 1; wr4: (SIZEOF(QUERY(directed_link_element <* directed_link |(root :=: directed_link_element\representation_relationship.rep_1))) + SIZEOF(QUERY(directed_link_element <* directed_link |(root :=: directed_link_element\representation_relationship.rep_2)))) = 1; wr5: (SIZEOF(QUERY(directed_link_element <* directed_link |(leaf :=: directed_link_element\representation_relationship.rep_1))) + SIZEOF(QUERY(directed_link_element <* directed_link |(leaf :=: directed_link_element\representation_relationship.rep_2)))) = 1; wr6: (SIZEOF(QUERY(directed_link_element <* directed_link |(root :<>: directed_link_element\representation_relationship.rep_1))) + SIZEOF(QUERY(directed_link_element <* directed_link |(root :<>: directed_link_element\representation_relationship.rep_2))) + SIZEOF(QUERY(directed_link_element <* directed_link |(leaf :<>: directed_link_element\representation_relationship.rep_1))) + SIZEOF(QUERY(directed_link_element <* directed_link |(leaf :<>: directed_link_element\representation_relationship.rep_2)))) = 2; wr7: NOT('REPRESENTATION_SCHEMA.MAPPED_ITEM' IN TYPEOF(undirected_link[1])) OR (root IN using_representations(undirected_link[1])); wr8: SIZEOF(undirected_link) = SIZEOF(directed_link); END_ENTITY; -- characterized_chain_based_item_within_representation |
Entity data types and their attributescharacterized_objectname: label; (OPT) description: text; characterized_item_within_representation item: representation_item; rep: representation; characterized_chain_based_item_within_representation nodes: LIST [2:?] OF UNIQUE representation; undirected_link: LIST [1:?] OF UNIQUE chained_representation_link; (DER) root: representation; (RT) (DER) rep->leaf: representation; (DER) directed_link: LIST [1:?] OF representation_relationship; |
Global rules for this entity data type- |
public interface ECharacterized_chain_based_item_within_representation extends ECharacterized_item_within_representationnodes (explicit attribute)boolean testNodes(ECharacterized_chain_based_item_within_representation type)ARepresentation getNodes(ECharacterized_chain_based_item_within_representation type) ARepresentation createNodes(ECharacterized_chain_based_item_within_representation type) void unsetNodes(ECharacterized_chain_based_item_within_representation type) undirected_link (explicit attribute)boolean testUndirected_link(ECharacterized_chain_based_item_within_representation type)AChained_representation_link getUndirected_link(ECharacterized_chain_based_item_within_representation type) AChained_representation_link createUndirected_link(ECharacterized_chain_based_item_within_representation type) void unsetUndirected_link(ECharacterized_chain_based_item_within_representation type) root (derived attribute)ERepresentation getRoot(ECharacterized_chain_based_item_within_representation type)boolean testRoot(ECharacterized_chain_based_item_within_representation type) directed_link (derived attribute)ARepresentation_relationship getDirected_link(ECharacterized_chain_based_item_within_representation type)boolean testDirected_link(ECharacterized_chain_based_item_within_representation type) |
public class CCharacterized_chain_based_item_within_representation implements ECharacterized_chain_based_item_within_representationstatic EAttribute attributeNodes(ECharacterized_chain_based_item_within_representation type)static int usedinNodes(ECharacterized_chain_based_item_within_representation type, ERepresentation instance, ASdaiModel domain, ACharacterized_chain_based_item_within_representation result) static EAttribute attributeUndirected_link(ECharacterized_chain_based_item_within_representation type) static int usedinUndirected_link(ECharacterized_chain_based_item_within_representation type, EEntity instance, ASdaiModel domain, ACharacterized_chain_based_item_within_representation result) static EAttribute attributeRoot(ECharacterized_chain_based_item_within_representation type) static int usedinRoot(ECharacterized_chain_based_item_within_representation type, ERepresentation instance, ASdaiModel domain, ACharacterized_chain_based_item_within_representation result) static EAttribute attributeLeaf(ECharacterized_chain_based_item_within_representation type) static int usedinLeaf(ECharacterized_chain_based_item_within_representation type, ERepresentation instance, ASdaiModel domain, ACharacterized_chain_based_item_within_representation result) static EAttribute attributeDirected_link(ECharacterized_chain_based_item_within_representation type) static int usedinDirected_link(ECharacterized_chain_based_item_within_representation type, ERepresentation_relationship instance, ASdaiModel domain, ACharacterized_chain_based_item_within_representation result) |
public class ACharacterized_chain_based_item_within_representation extends AEntitypublic ECharacterized_chain_based_item_within_representation getByIndex(int index)public ECharacterized_chain_based_item_within_representation getCurrentMember(SdaiIterator it) |