org.argouml.model
Class AbstractCommonBehaviorHelperDecorator

java.lang.Object
  extended byorg.argouml.model.AbstractCommonBehaviorHelperDecorator
All Implemented Interfaces:
CommonBehaviorHelper
Direct Known Subclasses:
UndoCommonBehaviorHelperDecorator

public abstract class AbstractCommonBehaviorHelperDecorator
extends Object
implements CommonBehaviorHelper

An abstract Decorator for the 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.
protected  CommonBehaviorHelper getComponent()
          The component we are decorating.
 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 c)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSource

public Object getSource(Object link)
Description copied from interface: CommonBehaviorHelper
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 CommonBehaviorHelper
Parameters:
link - the given link
Returns:
MInstance the source of the given link
See Also:
CommonBehaviorHelper.getSource(java.lang.Object)

getComponent

protected CommonBehaviorHelper getComponent()
The component we are decorating.

Returns:
Returns the component.

getDestination

public Object getDestination(Object link)
Description copied from interface: CommonBehaviorHelper
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 CommonBehaviorHelper
Parameters:
link - the given link
Returns:
MInstance the destination of the given link
See Also:
CommonBehaviorHelper.getDestination( java.lang.Object)

removeActualArgument

public void removeActualArgument(Object handle,
                                 Object argument)
Description copied from interface: CommonBehaviorHelper
Removes the actual Argument from an Action.

Specified by:
removeActualArgument in interface CommonBehaviorHelper
Parameters:
handle - Action
argument - Argument
See Also:
CommonBehaviorHelper.removeActualArgument( java.lang.Object, java.lang.Object)

removeClassifier

public void removeClassifier(Object handle,
                             Object classifier)
Description copied from interface: CommonBehaviorHelper
This method classifier from an instance.

Specified by:
removeClassifier in interface CommonBehaviorHelper
Parameters:
handle - is the instance
classifier - is the classifier
See Also:
CommonBehaviorHelper.removeClassifier( java.lang.Object, java.lang.Object)

removeContext

public void removeContext(Object handle,
                          Object context)
Description copied from interface: CommonBehaviorHelper
Remove the given context (BehavioralFeature) from a Signal.

Specified by:
removeContext in interface CommonBehaviorHelper
Parameters:
handle - Signal
context - BehavioralFeature
See Also:
CommonBehaviorHelper.removeContext( java.lang.Object, java.lang.Object)

removeReception

public void removeReception(Object handle,
                            Object reception)
Description copied from interface: CommonBehaviorHelper
Remove a given Reception from a given Signal.

Specified by:
removeReception in interface CommonBehaviorHelper
Parameters:
handle - the Signal
reception - the Reception
See Also:
CommonBehaviorHelper.removeReception( java.lang.Object, java.lang.Object)

addActualArgument

public void addActualArgument(Object handle,
                              Object argument)
Description copied from interface: CommonBehaviorHelper
Adds an actual argument to an action.

Specified by:
addActualArgument in interface CommonBehaviorHelper
Parameters:
handle - the action
argument - the argument
See Also:
CommonBehaviorHelper.addActualArgument( java.lang.Object, java.lang.Object)

addClassifier

public void addClassifier(Object handle,
                          Object classifier)
Description copied from interface: CommonBehaviorHelper
Adds a Classifier to an Instance.

Specified by:
addClassifier in interface CommonBehaviorHelper
Parameters:
handle - Instance
classifier - Classifier
See Also:
CommonBehaviorHelper.addClassifier( java.lang.Object, java.lang.Object)

addStimulus

public void addStimulus(Object handle,
                        Object stimulus)
Description copied from interface: CommonBehaviorHelper
Adds a stimulus to a action or link.

Specified by:
addStimulus in interface CommonBehaviorHelper
Parameters:
handle - the action or link
stimulus - is the stimulus
See Also:
CommonBehaviorHelper.addStimulus( java.lang.Object, java.lang.Object)

setAsynchronous

public void setAsynchronous(Object handle,
                            boolean value)
Description copied from interface: CommonBehaviorHelper
Sets the asynchronous property of an action.

Specified by:
setAsynchronous in interface CommonBehaviorHelper
Parameters:
handle - the action
value - the value to alter the asynchronous property to
See Also:
CommonBehaviorHelper.setAsynchronous( java.lang.Object, boolean)

setOperation

public void setOperation(Object handle,
                         Object operation)
Description copied from interface: CommonBehaviorHelper
Set the Operation of a CallAction or CallEvent.

Specified by:
setOperation in interface CommonBehaviorHelper
Parameters:
handle - CallAction or CallEvent
operation - Operation
See Also:
CommonBehaviorHelper.setOperation( java.lang.Object, java.lang.Object)

setClassifiers

public void setClassifiers(Object handle,
                           Vector v)
Description copied from interface: CommonBehaviorHelper
Sets the classifiers of some instance.

Specified by:
setClassifiers in interface CommonBehaviorHelper
Parameters:
handle - is the instance
v - is the classifier vector
See Also:
CommonBehaviorHelper.setClassifiers( java.lang.Object, java.util.Vector)

setCommunicationLink

public void setCommunicationLink(Object handle,
                                 Object c)
Description copied from interface: CommonBehaviorHelper
Sets the communicationLink between a link c and a stimulus handle.

Specified by:
setCommunicationLink in interface CommonBehaviorHelper
Parameters:
handle - the stimulus
c - the link
See Also:
CommonBehaviorHelper.setCommunicationLink( java.lang.Object, java.lang.Object)

setComponentInstance

public void setComponentInstance(Object handle,
                                 Object c)
Specified by:
setComponentInstance in interface CommonBehaviorHelper
Parameters:
handle - Instance
c - ComponentInstance or null
See Also:
CommonBehaviorHelper.setComponentInstance( java.lang.Object, java.lang.Object)

setContexts

public void setContexts(Object handle,
                        Collection c)
Description copied from interface: CommonBehaviorHelper
Sets the contexts for a Signal.

Specified by:
setContexts in interface CommonBehaviorHelper
Parameters:
handle - the Signal
c - the collection of contexts
See Also:
CommonBehaviorHelper.setContexts( java.lang.Object, java.util.Collection)

setDispatchAction

public void setDispatchAction(Object handle,
                              Object value)
Description copied from interface: CommonBehaviorHelper
Sets the dispatch action for some stimulus.

Specified by:
setDispatchAction in interface CommonBehaviorHelper
Parameters:
handle - the stimulus
value - the action. Can be null.
See Also:
CommonBehaviorHelper.setDispatchAction( java.lang.Object, java.lang.Object)

setInstance

public void setInstance(Object handle,
                        Object inst)
Description copied from interface: CommonBehaviorHelper
Sets the given Instance to the given LinkEnd or AttributeLink.

Specified by:
setInstance in interface CommonBehaviorHelper
Parameters:
handle - LinkEnd or AttributeLink
inst - null or Instance
See Also:
CommonBehaviorHelper.setInstance( java.lang.Object, java.lang.Object)

setNodeInstance

public void setNodeInstance(Object handle,
                            Object nodeInstance)
Description copied from interface: CommonBehaviorHelper
Set the NodeInstance of a ComponentInstance.

Specified by:
setNodeInstance in interface CommonBehaviorHelper
Parameters:
handle - ComponentInstance
nodeInstance - NodeInstance
See Also:
CommonBehaviorHelper.setNodeInstance( java.lang.Object, java.lang.Object)

setReceiver

public void setReceiver(Object handle,
                        Object receiver)
Description copied from interface: CommonBehaviorHelper
Sets the receiver of some model element.

Specified by:
setReceiver in interface CommonBehaviorHelper
Parameters:
handle - model element
receiver - the receiver
See Also:
CommonBehaviorHelper.setReceiver( java.lang.Object, java.lang.Object)

setReception

public void setReception(Object handle,
                         Collection c)
Description copied from interface: CommonBehaviorHelper
Sets the collection of receptions for a Sinal.

Specified by:
setReception in interface CommonBehaviorHelper
Parameters:
handle - the signal
c - a collection with receptions
See Also:
CommonBehaviorHelper.setReception( java.lang.Object, java.util.Collection)

setRecurrence

public void setRecurrence(Object handle,
                          Object expr)
Description copied from interface: CommonBehaviorHelper
Set the recurrence of an Action.

Specified by:
setRecurrence in interface CommonBehaviorHelper
Parameters:
handle - Action
expr - IterationExpression
See Also:
CommonBehaviorHelper.setRecurrence( java.lang.Object, java.lang.Object)

setScript

public void setScript(Object handle,
                      Object expr)
Description copied from interface: CommonBehaviorHelper
Set the Expression (script) for an Action.

Specified by:
setScript in interface CommonBehaviorHelper
Parameters:
handle - Action
expr - the script (ActionExpression)
See Also:
CommonBehaviorHelper.setScript( java.lang.Object, java.lang.Object)

setSender

public void setSender(Object handle,
                      Object sender)
Description copied from interface: CommonBehaviorHelper
Sets the sender of some model element.

Specified by:
setSender in interface CommonBehaviorHelper
Parameters:
handle - model element
sender - the sender
See Also:
CommonBehaviorHelper.setSender( java.lang.Object, java.lang.Object)

setSignal

public void setSignal(Object handle,
                      Object signal)
Description copied from interface: CommonBehaviorHelper
Set the Signal.

Specified by:
setSignal in interface CommonBehaviorHelper
Parameters:
handle - SendAction or Reception or SignalEvent
signal - Signal or null
See Also:
CommonBehaviorHelper.setSignal( java.lang.Object, java.lang.Object)

setSpecification

public void setSpecification(Object handle,
                             String specification)
Specified by:
setSpecification in interface CommonBehaviorHelper
Parameters:
handle - a reception
specification - the specification
See Also:
CommonBehaviorHelper.setSpecification( java.lang.Object, java.lang.String)

setTarget

public void setTarget(Object handle,
                      Object element)
Description copied from interface: CommonBehaviorHelper
Sets the target of some action or transition.

Specified by:
setTarget in interface CommonBehaviorHelper
Parameters:
handle - the model element
element - the target of the model elemnet
See Also:
CommonBehaviorHelper.setTarget( java.lang.Object, java.lang.Object)

setTransition

public void setTransition(Object handle,
                          Object trans)
Description copied from interface: CommonBehaviorHelper
Set the Transition of a guard or effect (Action).

Specified by:
setTransition in interface CommonBehaviorHelper
Parameters:
handle - the Guard or Action
trans - the Transition
See Also:
CommonBehaviorHelper.setTransition( java.lang.Object, java.lang.Object)

setValue

public void setValue(Object handle,
                     Object value)
Description copied from interface: CommonBehaviorHelper
Set the value of a given object.

Specified by:
setValue in interface CommonBehaviorHelper
Parameters:
handle - the Object of which the value will be set
value - Object
See Also:
CommonBehaviorHelper.setValue( java.lang.Object, java.lang.Object)

getInstantiation

public Object getInstantiation(Object createaction)
Description copied from interface: CommonBehaviorHelper
Returns the instance which the create action creates.

Specified by:
getInstantiation in interface CommonBehaviorHelper
Parameters:
createaction - the create action
Returns:
the instantiation of the create action
See Also:
CommonBehaviorHelper.getInstantiation(Object)

setInstantiation

public void setInstantiation(Object createaction,
                             Object instantiation)
Description copied from interface: CommonBehaviorHelper
Set the instantiation for a create action.

Specified by:
setInstantiation in interface CommonBehaviorHelper
Parameters:
createaction - the action
instantiation - the classifier
See Also:
CommonBehaviorHelper.setInstantiation(Object, Object)

getActionOwner

public Object getActionOwner(Object handle)
Description copied from interface: CommonBehaviorHelper
Return the owner of an action.

Specified by:
getActionOwner in interface CommonBehaviorHelper
Parameters:
handle - the action
Returns:
owning element of this action
See Also:
CommonBehaviorHelper.getActionOwner(Object)


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook