ENTITY managed_resource SUBTYPE OF (action_resource); quantity : OPTIONAL measure_with_unit; item : resource_item; DERIVE SELF\action_resource.usage : SET [1:?] OF supported_item := ?; END_ENTITY; -- managed_resource |
Entity data types and their attributesaction_resourcename: label; (OPT) description: text; usage: SET [1:?] OF supported_item; kind: action_resource_type; managed_resource (OPT) quantity: measure_with_unit; item: resource_item; (RT) (DER) usage: SET [1:?] OF supported_item; |
Global rules for this entity data type- |
public interface EManaged_resource extends EAction_resourcequantity (explicit attribute)boolean testQuantity(EManaged_resource type)EMeasure_with_unit getQuantity(EManaged_resource type) void setQuantity(EManaged_resource type, EMeasure_with_unit value) void unsetQuantity(EManaged_resource type) item (explicit attribute)boolean testItem(EManaged_resource type)EResource_item getItem(EManaged_resource type) void setItem(EManaged_resource type, EResource_item value) void unsetItem(EManaged_resource type) |
public class CManaged_resource implements EManaged_resourcestatic EAttribute attributeQuantity(EManaged_resource type)static int usedinQuantity(EManaged_resource type, EMeasure_with_unit instance, ASdaiModel domain, AManaged_resource result) static EAttribute attributeItem(EManaged_resource type) static int usedinItem(EManaged_resource type, EResource_item instance, ASdaiModel domain, AManaged_resource result) static EAttribute attributeUsage(EManaged_resource type) static int usedinUsage(EManaged_resource type, EEntity instance, ASdaiModel domain, AManaged_resource result) |
public class AManaged_resource extends AEntitypublic EManaged_resource getByIndex(int index)public EManaged_resource getCurrentMember(SdaiIterator it) |