Public Member Functions | Package Functions | Private Attributes

de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ResourceModelInstance Class Reference

Global instance of a resource model. More...

List of all members.

Public Member Functions

ResourceModel getInstantiatedElement ()
 Returns the instantiated element.
ResourceModel getResourceModel ()
 Returns the instantiated resource model.
boolean removeInstantiatedElement ()
 Removes the instantiated element reference.
boolean removeResourceModel ()
 Removes the instantiated resource model.
 ResourceModelInstance ()
 Constructor.
void setResourceModel (ResourceModel newElement) throws AXLException
 Sets the instantiated resource model reference.

Package Functions

public< T extends
IAXLangElement > void 
setInstantiatedElement (T newElement) throws AXLException
 Sets the instantiated element reference.

Private Attributes

final Role ELEMENT_ROLE = Role.RESOURCEMODEL
 element role

Detailed Description

Global instance of a resource model.

Author:
ekleinod
mgrosse
Version:
0.10.0
Since:
0.9.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ResourceModelInstance.ResourceModelInstance (  ) 

Constructor.


Member Function Documentation

ResourceModel de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ResourceModelInstance.getInstantiatedElement (  ) 

Returns the instantiated element.

Returns:
the instantiated element
Return values:
null if there is no instantiated element

Implements de.fraunhofer.isst.axbench.axlang.api.IGlobalInstance.

ResourceModel de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ResourceModelInstance.getResourceModel (  ) 

Returns the instantiated resource model.

Returns:
the instantiated resource model
Return values:
null if none defined
boolean de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ResourceModelInstance.removeInstantiatedElement (  ) 

Removes the instantiated element reference.

Returns:
remove success
Return values:
true instantiated element was removed, or instantiated element was null
false instantiated element was not removed

Implements de.fraunhofer.isst.axbench.axlang.api.IGlobalInstance.

boolean de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ResourceModelInstance.removeResourceModel (  ) 

Removes the instantiated resource model.

Returns:
remove success
Return values:
true reference was removed, or was null
false reference was not removed
public<T extends IAXLangElement> void de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ResourceModelInstance.setInstantiatedElement ( newElement  )  throws AXLException [package]

Sets the instantiated element reference.

Parameters:
<T> the type of the instantiated element
newInstantiatedElement the new instantiated element
Exceptions:
AXLException if the reference to the new instantiated element cannot be set

Implements de.fraunhofer.isst.axbench.axlang.api.IGlobalInstance.

void de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ResourceModelInstance.setResourceModel ( ResourceModel  newElement  )  throws AXLException

Sets the instantiated resource model reference.

Parameters:
newInstantiatedElement the new instantiated resource model
Exceptions:
AXLException if the reference cannot be set

Member Data Documentation

element role