org.argouml.model.uml
Class CommonBehaviorHelperImpl

java.lang.Object
  extended byorg.argouml.model.uml.CommonBehaviorHelperImpl
All Implemented Interfaces:
org.argouml.model.CommonBehaviorHelper

class CommonBehaviorHelperImpl
extends Object
implements org.argouml.model.CommonBehaviorHelper

Helper class for UML BehavioralElements::CommonBehavior Package.

Since:
ARGO0.11.2

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

nsmodel

private NSUMLModelImplementation nsmodel
The model implementation.

Constructor Detail

CommonBehaviorHelperImpl

CommonBehaviorHelperImpl(NSUMLModelImplementation implementation)
Don't allow instantiation.

Parameters:
implementation - To get other helpers and factories.
Method Detail

getSource

public Object getSource(Object link)
Returns the source of a link. The source of a binary link is defined as the instance where the first linkend is pointing to via the association instance.

Specified by:
getSource in interface org.argouml.model.CommonBehaviorHelper
Parameters:
link - the given link
Returns:
MInstance the source of the given link

getDestination

public Object getDestination(Object link)
Returns the destination of a link. The destination of a binary link is defined as the instance where the second linkend is pointing to via the association instance.

Specified by:
getDestination in interface org.argouml.model.CommonBehaviorHelper
Parameters:
link - the given link
Returns:
MInstance the destination of the given link

removeActualArgument

public void removeActualArgument(Object handle,
                                 Object argument)
Removes the actual Argument from an Action.

Specified by:
removeActualArgument in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - Action
argument - Argument

removeClassifier

public void removeClassifier(Object handle,
                             Object classifier)
This method classifier from an instance.

Specified by:
removeClassifier in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - is the instance
classifier - is the classifier

removeContext

public void removeContext(Object handle,
                          Object context)
Remove the given context (BehavioralFeature) from a Signal.

Specified by:
removeContext in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - Signal
context - BehavioralFeature

removeReception

public void removeReception(Object handle,
                            Object reception)
Remove a given Reception from a given Signal.

Specified by:
removeReception in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - the Signal
reception - the Reception

addActualArgument

public void addActualArgument(Object handle,
                              Object argument)
Adds an actual argument to an action.

Specified by:
addActualArgument in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - the action
argument - the argument

addClassifier

public void addClassifier(Object handle,
                          Object classifier)
Adds a Classifier to an Instance.

Specified by:
addClassifier in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - Instance
classifier - Classifier

addStimulus

public void addStimulus(Object handle,
                        Object stimulus)
Adds a stimulus to a action or link.

Specified by:
addStimulus in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - the action or link
stimulus - is the stimulus

setAsynchronous

public void setAsynchronous(Object handle,
                            boolean value)
Sets the asynchronous property of an action.

Specified by:
setAsynchronous in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - the action
value - the value to alter the asynchronous property to

setOperation

public void setOperation(Object handle,
                         Object operation)
Set the Operation of a CallAction or CallEvent.

Specified by:
setOperation in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - CallAction or CallEvent
operation - Operation

setClassifiers

public void setClassifiers(Object handle,
                           Vector v)
Sets the classifiers of some instance.

Specified by:
setClassifiers in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - is the instance
v - is the classifier vector

setCommunicationLink

public void setCommunicationLink(Object handle,
                                 Object c)
Sets the communicationLink between a link c and a stimulus handle.

Specified by:
setCommunicationLink in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - the stimulus
c - the link

setComponentInstance

public void setComponentInstance(Object handle,
                                 Object c)
Specified by:
setComponentInstance in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - Instance
c - ComponentInstance or null

setContexts

public void setContexts(Object handle,
                        Collection c)
Sets the contexts for a Signal.

Specified by:
setContexts in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - the Signal
c - the collection of contexts

setDispatchAction

public void setDispatchAction(Object handle,
                              Object value)
Sets the dispatch action for some stimulus.

Specified by:
setDispatchAction in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - the stimulus
value - the action. Can be null.

setInstance

public void setInstance(Object handle,
                        Object inst)
Sets the given Instance to the given LinkEnd or AttributeLink.

Specified by:
setInstance in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - LinkEnd or AttributeLink
inst - null or Instance

setNodeInstance

public void setNodeInstance(Object handle,
                            Object nodeInstance)
Set the NodeInstance of a ComponentInstance.

Specified by:
setNodeInstance in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - ComponentInstance
nodeInstance - NodeInstance

setReceiver

public void setReceiver(Object handle,
                        Object receiver)
Sets the receiver of some model element.

Specified by:
setReceiver in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - model element
receiver - the receiver

setRecurrence

public void setRecurrence(Object handle,
                          Object expr)
Set the recurrence of an Action.

Specified by:
setRecurrence in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - Action
expr - IterationExpression

setScript

public void setScript(Object handle,
                      Object expr)
Set the Expression (script) for an Action.

Specified by:
setScript in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - Action
expr - the script (ActionExpression)

setSender

public void setSender(Object handle,
                      Object sender)
Sets the sender of some model element.

Specified by:
setSender in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - model element
sender - the sender

setSignal

public void setSignal(Object handle,
                      Object signal)
Set the Signal.

Specified by:
setSignal in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - SendAction or Reception or SignalEvent
signal - Signal or null

setSpecification

public void setSpecification(Object handle,
                             String specification)
Specified by:
setSpecification in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - a reception
specification - the specification

setTarget

public void setTarget(Object handle,
                      Object element)
Sets the target of some action or transition.

Specified by:
setTarget in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - the model element
element - the target of the model elemnet

setTransition

public void setTransition(Object handle,
                          Object trans)
Set the Transition of a guard or effect (Action).

Specified by:
setTransition in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - the Guard or Action
trans - the Transition

setValue

public void setValue(Object handle,
                     Object value)
Set the value of a given object.

Specified by:
setValue in interface org.argouml.model.CommonBehaviorHelper
Parameters:
handle - the Object of which the value will be set
value - Object


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook