org.argouml.model
Interface CommonBehaviorHelper

All Known Implementing Classes:
AbstractCommonBehaviorHelperDecorator

public interface CommonBehaviorHelper

The interface to the helper of the CommonBehavior.

Created from the old CommonBehaviorHelper.


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 getActionOwner(Object handle)
          Return the owner of an action.
 Object getDestination(Object link)
          Returns the destination of a link.
 Object getInstantiation(Object createaction)
          Returns the instance which the create action creates.
 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 setInstantiation(Object createaction, Object instantiation)
          Set the instantiation for a create action.
 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 setReception(Object handle, Collection receptions)
          Sets the collection of receptions for a Sinal.
 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.
 

Method Detail

getInstantiation

public Object getInstantiation(Object createaction)
Returns the instance which the create action creates.

Parameters:
createaction - the create action
Returns:
the instantiation of the create action

setInstantiation

public void setInstantiation(Object createaction,
                             Object instantiation)
Set the instantiation for a create action.

Parameters:
createaction - the action
instantiation - the classifier

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.

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.

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.

Parameters:
handle - Action
argument - Argument

removeClassifier

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

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.

Parameters:
handle - Signal
context - BehavioralFeature

removeReception

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

Parameters:
handle - the Signal
reception - the Reception

addActualArgument

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

Parameters:
handle - the action
argument - the argument

addClassifier

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

Parameters:
handle - Instance
classifier - Classifier

addStimulus

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

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.

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.

Parameters:
handle - CallAction or CallEvent
operation - Operation

setClassifiers

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

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.

Parameters:
handle - the stimulus
c - the link

setComponentInstance

public void setComponentInstance(Object handle,
                                 Object c)
Parameters:
handle - Instance
c - ComponentInstance or null

setContexts

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

Parameters:
handle - the Signal
c - the collection of contexts

setDispatchAction

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

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.

Parameters:
handle - LinkEnd or AttributeLink
inst - null or Instance

setNodeInstance

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

Parameters:
handle - ComponentInstance
nodeInstance - NodeInstance

setReceiver

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

Parameters:
handle - model element
receiver - the receiver

setReception

public void setReception(Object handle,
                         Collection receptions)
Sets the collection of receptions for a Sinal.

Parameters:
handle - the signal
receptions - a collection with receptions

setRecurrence

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

Parameters:
handle - Action
expr - IterationExpression

setScript

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

Parameters:
handle - Action
expr - the script (ActionExpression)

setSender

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

Parameters:
handle - model element
sender - the sender

setSignal

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

Parameters:
handle - SendAction or Reception or SignalEvent
signal - Signal or null

setSpecification

public void setSpecification(Object handle,
                             String specification)
Parameters:
handle - a reception
specification - the specification

setTarget

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

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).

Parameters:
handle - the Guard or Action
trans - the Transition

setValue

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

Parameters:
handle - the Object of which the value will be set
value - Object

getActionOwner

public Object getActionOwner(Object handle)
Return the owner of an action.

Parameters:
handle - the action
Returns:
owning element of this action


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook