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 addAction(java.lang.Object handle, int position, java.lang.Object action)
          Inserts an action at the specified position in an action sequence.
 void addAction(java.lang.Object handle, java.lang.Object action)
          Add an action to action sequence.
 void addActualArgument(java.lang.Object handle, int position, java.lang.Object argument)
          Adds an actual argument to an action.
 void addActualArgument(java.lang.Object handle, java.lang.Object argument)
          Adds an actual argument to an action.
 void addClassifier(java.lang.Object handle, java.lang.Object classifier)
          Adds a Classifier to an Instance.
 void addStimulus(java.lang.Object handle, java.lang.Object stimulus)
          Adds a stimulus to a action or link.
 java.lang.Object getActionOwner(java.lang.Object handle)
          Return the owner of an action.
 java.lang.Object getDestination(java.lang.Object link)
          Returns the destination of a link.
 java.lang.Object getInstantiation(java.lang.Object createaction)
          Returns the instance which the create action creates.
 java.lang.Object getSource(java.lang.Object link)
          Returns the source of a link.
 void removeAction(java.lang.Object handle, java.lang.Object action)
          Remove an Action from an ActionSequence.
 void removeActualArgument(java.lang.Object handle, java.lang.Object argument)
          Removes the actual Argument from an Action.
 void removeClassifier(java.lang.Object handle, java.lang.Object classifier)
          This method classifier from an instance.
 void removeContext(java.lang.Object handle, java.lang.Object context)
          Remove the given context (BehavioralFeature) from a Signal.
 void removeReception(java.lang.Object handle, java.lang.Object reception)
          Remove a given Reception from a given Signal.
 void setActualArguments(java.lang.Object action, java.util.List arguments)
          This method replaces all arguments of the given action by the given list of arguments.
 void setAsynchronous(java.lang.Object handle, boolean value)
          Sets the asynchronous property of an action.
 void setClassifiers(java.lang.Object handle, java.util.Collection classifiers)
          Sets the classifiers of the given instance.
 void setCommunicationLink(java.lang.Object handle, java.lang.Object c)
          Sets the communicationLink between a link c and a stimulus handle.
 void setComponentInstance(java.lang.Object handle, java.lang.Object c)
           
 void setContexts(java.lang.Object handle, java.util.Collection c)
          Sets the contexts for a Signal.
 void setDispatchAction(java.lang.Object handle, java.lang.Object value)
          Sets the dispatch action for some stimulus.
 void setInstance(java.lang.Object handle, java.lang.Object inst)
          Sets the given Instance to the given LinkEnd or AttributeLink.
 void setInstantiation(java.lang.Object createaction, java.lang.Object instantiation)
          Set the instantiation for a create action.
 void setNodeInstance(java.lang.Object handle, java.lang.Object nodeInstance)
          Set the NodeInstance of a ComponentInstance.
 void setOperation(java.lang.Object handle, java.lang.Object operation)
          Set the Operation of a CallAction or CallEvent.
 void setReceiver(java.lang.Object handle, java.lang.Object receiver)
          Sets the receiver of some model element.
 void setReception(java.lang.Object handle, java.util.Collection receptions)
          Sets the collection of receptions for a Sinal.
 void setRecurrence(java.lang.Object handle, java.lang.Object expr)
          Set the recurrence of an Action.
 void setScript(java.lang.Object handle, java.lang.Object expr)
          Set the Expression (script) for an Action.
 void setSender(java.lang.Object handle, java.lang.Object sender)
          Sets the sender of some model element.
 void setSignal(java.lang.Object handle, java.lang.Object signal)
          Set the Signal.
 void setSpecification(java.lang.Object handle, java.lang.String specification)
           
 void setTarget(java.lang.Object handle, java.lang.Object element)
          Sets the target of some action or transition.
 void setTransition(java.lang.Object handle, java.lang.Object trans)
          Set the Transition of a guard or effect (Action).
 void setValue(java.lang.Object handle, java.lang.Object value)
          Set the value of an Argument or AttributeLink.
 

Method Detail

getInstantiation

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

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

setInstantiation

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

Parameters:
createaction - the action
instantiation - the classifier

getSource

java.lang.Object getSource(java.lang.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

java.lang.Object getDestination(java.lang.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

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

Parameters:
handle - Action
argument - Argument

setActualArguments

void setActualArguments(java.lang.Object action,
                        java.util.List arguments)
This method replaces all arguments of the given action by the given list of arguments.

Parameters:
action - the given action
arguments - the new arguments

removeClassifier

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

Parameters:
handle - is the instance
classifier - is the classifier

removeContext

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

Parameters:
handle - Signal
context - BehavioralFeature

removeReception

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

Parameters:
handle - the Signal
reception - the Reception

addActualArgument

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

Parameters:
handle - the action
argument - the argument

addActualArgument

void addActualArgument(java.lang.Object handle,
                       int position,
                       java.lang.Object argument)
Adds an actual argument to an action.

Parameters:
handle - the action
position - the 0-based position at which to insert the actualArgument
argument - the argument

addClassifier

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

Parameters:
handle - Instance
classifier - Classifier

addStimulus

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

Parameters:
handle - the action or link
stimulus - is the stimulus

setAsynchronous

void setAsynchronous(java.lang.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

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

Parameters:
handle - CallAction or CallEvent
operation - Operation

setClassifiers

void setClassifiers(java.lang.Object handle,
                    java.util.Collection classifiers)
Sets the classifiers of the given instance.

Parameters:
handle - is the instance
classifiers - collection of classifiers

setCommunicationLink

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

Parameters:
handle - the stimulus
c - the link

setComponentInstance

void setComponentInstance(java.lang.Object handle,
                          java.lang.Object c)
Parameters:
handle - Instance
c - ComponentInstance or null

setContexts

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

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

setDispatchAction

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

Parameters:
handle - the stimulus
value - the action. Can be null.

setInstance

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

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

setNodeInstance

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

Parameters:
handle - ComponentInstance
nodeInstance - NodeInstance

setReceiver

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

Parameters:
handle - model element
receiver - the receiver

setReception

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

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

setRecurrence

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

Parameters:
handle - Action
expr - IterationExpression

setScript

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

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

setSender

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

Parameters:
handle - model element
sender - the sender

setSignal

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

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

setSpecification

void setSpecification(java.lang.Object handle,
                      java.lang.String specification)
Parameters:
handle - a reception
specification - the specification

setTarget

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

Parameters:
handle - the model element
element - the target of the model elemnet

setTransition

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

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

setValue

void setValue(java.lang.Object handle,
              java.lang.Object value)
Set the value of an Argument or AttributeLink.

NOTE: This method used allow setting the dataValue of a TaggedValue. This usage is deprecated.

Parameters:
handle - the Object of which the value will be set
value - the value to set. If handle is an Argument, the value must be an Expression. If it's an AttributeLink, the value must be an Instance.

getActionOwner

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

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

addAction

void addAction(java.lang.Object handle,
               java.lang.Object action)
Add an action to action sequence.

Parameters:
handle - the action sequence
action - the action

addAction

void addAction(java.lang.Object handle,
               int position,
               java.lang.Object action)
Inserts an action at the specified position in an action sequence.

Parameters:
handle - the action sequence
position - the 0-based position at which to insert the action
action - the action

removeAction

void removeAction(java.lang.Object handle,
                  java.lang.Object action)
Remove an Action from an ActionSequence.

Parameters:
handle - ActionSequence
action - Action


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook