|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.model.uml.CommonBehaviorHelperImpl
Helper class for UML BehavioralElements::CommonBehavior Package.
Field Summary | |
private NSUMLModelImplementation |
nsmodel
The model implementation. |
Constructor Summary | |
(package private) |
CommonBehaviorHelperImpl(NSUMLModelImplementation implementation)
Don't allow instantiation. |
Method Summary | |
void |
addActualArgument(Object handle,
Object argument)
Adds an actual argument to an action. |
void |
addClassifier(Object handle,
Object classifier)
Adds a Classifier to an Instance. |
void |
addStimulus(Object handle,
Object stimulus)
Adds a stimulus to a action or link. |
Object |
getDestination(Object link)
Returns the destination of a link. |
Object |
getSource(Object link)
Returns the source of a link. |
void |
removeActualArgument(Object handle,
Object argument)
Removes the actual Argument from an Action. |
void |
removeClassifier(Object handle,
Object classifier)
This method classifier from an instance. |
void |
removeContext(Object handle,
Object context)
Remove the given context (BehavioralFeature) from a Signal. |
void |
removeReception(Object handle,
Object reception)
Remove a given Reception from a given Signal. |
void |
setAsynchronous(Object handle,
boolean value)
Sets the asynchronous property of an action. |
void |
setClassifiers(Object handle,
Vector v)
Sets the classifiers of some instance. |
void |
setCommunicationLink(Object handle,
Object c)
Sets the communicationLink between a link c and a stimulus handle. |
void |
setComponentInstance(Object handle,
Object c)
|
void |
setContexts(Object handle,
Collection c)
Sets the contexts for a Signal. |
void |
setDispatchAction(Object handle,
Object value)
Sets the dispatch action for some stimulus. |
void |
setInstance(Object handle,
Object inst)
Sets the given Instance to the given LinkEnd or AttributeLink. |
void |
setNodeInstance(Object handle,
Object nodeInstance)
Set the NodeInstance of a ComponentInstance. |
void |
setOperation(Object handle,
Object operation)
Set the Operation of a CallAction or CallEvent. |
void |
setReceiver(Object handle,
Object receiver)
Sets the receiver of some model element. |
void |
setRecurrence(Object handle,
Object expr)
Set the recurrence of an Action. |
void |
setScript(Object handle,
Object expr)
Set the Expression (script) for an Action. |
void |
setSender(Object handle,
Object sender)
Sets the sender of some model element. |
void |
setSignal(Object handle,
Object signal)
Set the Signal. |
void |
setSpecification(Object handle,
String specification)
|
void |
setTarget(Object handle,
Object element)
Sets the target of some action or transition. |
void |
setTransition(Object handle,
Object trans)
Set the Transition of a guard or effect (Action). |
void |
setValue(Object handle,
Object value)
Set the value of a given object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private NSUMLModelImplementation nsmodel
Constructor Detail |
CommonBehaviorHelperImpl(NSUMLModelImplementation implementation)
implementation
- To get other helpers and factories.Method Detail |
public Object getSource(Object link)
getSource
in interface org.argouml.model.CommonBehaviorHelper
link
- the given link
public Object getDestination(Object link)
getDestination
in interface org.argouml.model.CommonBehaviorHelper
link
- the given link
public void removeActualArgument(Object handle, Object argument)
removeActualArgument
in interface org.argouml.model.CommonBehaviorHelper
handle
- Actionargument
- Argumentpublic void removeClassifier(Object handle, Object classifier)
removeClassifier
in interface org.argouml.model.CommonBehaviorHelper
handle
- is the instanceclassifier
- is the classifierpublic void removeContext(Object handle, Object context)
removeContext
in interface org.argouml.model.CommonBehaviorHelper
handle
- Signalcontext
- BehavioralFeaturepublic void removeReception(Object handle, Object reception)
removeReception
in interface org.argouml.model.CommonBehaviorHelper
handle
- the Signalreception
- the Receptionpublic void addActualArgument(Object handle, Object argument)
addActualArgument
in interface org.argouml.model.CommonBehaviorHelper
handle
- the actionargument
- the argumentpublic void addClassifier(Object handle, Object classifier)
addClassifier
in interface org.argouml.model.CommonBehaviorHelper
handle
- Instanceclassifier
- Classifierpublic void addStimulus(Object handle, Object stimulus)
addStimulus
in interface org.argouml.model.CommonBehaviorHelper
handle
- the action or linkstimulus
- is the stimuluspublic void setAsynchronous(Object handle, boolean value)
setAsynchronous
in interface org.argouml.model.CommonBehaviorHelper
handle
- the actionvalue
- the value to alter the asynchronous property topublic void setOperation(Object handle, Object operation)
setOperation
in interface org.argouml.model.CommonBehaviorHelper
handle
- CallAction or CallEventoperation
- Operationpublic void setClassifiers(Object handle, Vector v)
setClassifiers
in interface org.argouml.model.CommonBehaviorHelper
handle
- is the instancev
- is the classifier vectorpublic void setCommunicationLink(Object handle, Object c)
setCommunicationLink
in interface org.argouml.model.CommonBehaviorHelper
handle
- the stimulusc
- the linkpublic void setComponentInstance(Object handle, Object c)
setComponentInstance
in interface org.argouml.model.CommonBehaviorHelper
handle
- Instancec
- ComponentInstance or nullpublic void setContexts(Object handle, Collection c)
setContexts
in interface org.argouml.model.CommonBehaviorHelper
handle
- the Signalc
- the collection of contextspublic void setDispatchAction(Object handle, Object value)
setDispatchAction
in interface org.argouml.model.CommonBehaviorHelper
handle
- the stimulusvalue
- the action. Can be null
.public void setInstance(Object handle, Object inst)
setInstance
in interface org.argouml.model.CommonBehaviorHelper
handle
- LinkEnd or AttributeLinkinst
- null or Instancepublic void setNodeInstance(Object handle, Object nodeInstance)
setNodeInstance
in interface org.argouml.model.CommonBehaviorHelper
handle
- ComponentInstancenodeInstance
- NodeInstancepublic void setReceiver(Object handle, Object receiver)
setReceiver
in interface org.argouml.model.CommonBehaviorHelper
handle
- model elementreceiver
- the receiverpublic void setRecurrence(Object handle, Object expr)
setRecurrence
in interface org.argouml.model.CommonBehaviorHelper
handle
- Actionexpr
- IterationExpressionpublic void setScript(Object handle, Object expr)
setScript
in interface org.argouml.model.CommonBehaviorHelper
handle
- Actionexpr
- the script (ActionExpression)public void setSender(Object handle, Object sender)
setSender
in interface org.argouml.model.CommonBehaviorHelper
handle
- model elementsender
- the senderpublic void setSignal(Object handle, Object signal)
setSignal
in interface org.argouml.model.CommonBehaviorHelper
handle
- SendAction or Reception or SignalEventsignal
- Signal or nullpublic void setSpecification(Object handle, String specification)
setSpecification
in interface org.argouml.model.CommonBehaviorHelper
handle
- a receptionspecification
- the specificationpublic void setTarget(Object handle, Object element)
setTarget
in interface org.argouml.model.CommonBehaviorHelper
handle
- the model elementelement
- the target of the model elemnetpublic void setTransition(Object handle, Object trans)
setTransition
in interface org.argouml.model.CommonBehaviorHelper
handle
- the Guard or Actiontrans
- the Transitionpublic void setValue(Object handle, Object value)
setValue
in interface org.argouml.model.CommonBehaviorHelper
handle
- the Object of which the value will be setvalue
- Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |