Public Member Functions | Package Functions | Private Attributes

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

Global instance of a component. More...

List of all members.

Public Member Functions

 ComponentInstance ()
 Constructor.
Component getComponent ()
 Returns the instantiated component.
Component getInstantiatedElement ()
 Returns the instantiated element.
boolean removeComponent ()
 Removes the instantiated component.
boolean removeInstantiatedElement ()
 Removes the instantiated element reference.
void setComponent (Component newElement) throws AXLException
 Sets the instantiated component 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.COMPONENT
 element role

Detailed Description

Global instance of a component.

Author:
mgrosse
ekleinod
Version:
0.9.0
Since:
0.9.0

Constructor & Destructor Documentation

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

Constructor.


Member Function Documentation

Component de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ComponentInstance.getComponent (  ) 

Returns the instantiated component.

Returns:
the instantiated component
Return values:
null if none defined
Component de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ComponentInstance.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.

boolean de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ComponentInstance.removeComponent (  ) 

Removes the instantiated component.

Returns:
remove success
Return values:
true reference was removed, or was null
false reference was not removed
boolean de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ComponentInstance.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.

void de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ComponentInstance.setComponent ( Component  newElement  )  throws AXLException

Sets the instantiated component reference.

Parameters:
newInstantiatedElement the new instantiated component
Exceptions:
AXLException if the reference cannot be set
public<T extends IAXLangElement> void de.fraunhofer.isst.axbench.axlang.elements.globalinstances.ComponentInstance.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.


Member Data Documentation

element role