|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.evelopers.unimod.core.ModelElement
com.evelopers.unimod.core.stateworks.Association
An association between ClassElements
| Field Summary | |
static java.lang.String |
CLIENT_ROLE_PROPERTY
|
static java.lang.String |
SUPPLIER_ROLE_PROPERTY
|
| Fields inherited from class com.evelopers.unimod.core.ModelElement |
listeners, name, NAME_PROPERTY, stereotype, STEREOTYPE_PROPERTY |
| Constructor Summary | |
protected |
Association(ClassElement source,
ClassElement target)
Creates new association using controlled object name as supplier role. |
protected |
Association(ClassElement source,
java.lang.String supplierRole,
ClassElement target,
java.lang.String clientRole)
Creates new association. |
| Method Summary | |
void |
attachSource()
|
void |
attachTarget()
|
void |
detachSource()
|
void |
detachTarget()
|
boolean |
equals(java.lang.Object o)
This implementation considers ends of association and value of supplier's role to be immutable. |
java.lang.String |
getClientRole()
|
ClassElement |
getSource()
Returns state machine that is a client in this association. |
java.lang.String |
getSupplierRole()
Supplier role is the name that is used be state machine to identify the controlled object. |
ClassElement |
getTarget()
Returns controlled object that is a supplier in this association. |
int |
hashCode()
This implementation considers ends of association and value of supplier role to be immutable. |
void |
reconnect(ClassElement newSource,
ClassElement newTarget)
Reconnects transition to new source and target states. |
protected void |
setClientRole(java.lang.String newClientRole)
|
void |
setSource(ClassElement newSource)
Sets new source class. |
protected void |
setSupplierRole(java.lang.String newSupplierRole)
Sets newSupplierRole as a supplier role for this association.
|
void |
setTarget(ClassElement newTarget)
Sets new target state. |
| Methods inherited from class com.evelopers.unimod.core.ModelElement |
accept, addPropertyChangeListener, firePropertyChange, getName, getStereotype, initListeners, removePropertyChangeListener, setName, setStereotype, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String SUPPLIER_ROLE_PROPERTY
public static final java.lang.String CLIENT_ROLE_PROPERTY
| Constructor Detail |
protected Association(ClassElement source,
ClassElement target)
Creates new association using controlled object name as supplier role. Adds this association to list of associations of given state machine and to list of associations of given controlled object.
Note: sm, co and
name of the co
shouldn't be null. If implementation
needs to pass null to this constructor then
methods hashCode() and equals(java.lang.Object) must
be overriden.
protected Association(ClassElement source,
java.lang.String supplierRole,
ClassElement target,
java.lang.String clientRole)
Creates new association. Adds this association to list of associations of given state machine and to list of associations of given controlled object.
Note: sm, co and
supplierRole
shouldn't be null. If implementation
needs to pass null to this constructor then
methods hashCode() and equals(java.lang.Object) must
be overriden.
supplierRole - name of controlled object that is used
by state machine to identify controlled object.| Method Detail |
public ClassElement getSource()
public ClassElement getTarget()
public java.lang.String getSupplierRole()
public java.lang.String getClientRole()
public void reconnect(ClassElement newSource,
ClassElement newTarget)
public void setSource(ClassElement newSource)
newSource - new source class. If null, then association will only removes itself
from old source class outgoing associations list.public void attachSource()
public void detachSource()
public void setTarget(ClassElement newTarget)
public void attachTarget()
public void detachTarget()
protected void setSupplierRole(java.lang.String newSupplierRole)
Sets newSupplierRole as a supplier role for this association.
Note: if this method is used by extending
classes then methods hashCode() and equals(java.lang.Object)
must be overriden.
newSupplierRole - new supplier role for this association.protected void setClientRole(java.lang.String newClientRole)
public int hashCode()
hashCode in class ModelElementpublic boolean equals(java.lang.Object o)
equals in class ModelElemento - an object to compare this association to
o
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||