com.telelogic.rhapsody.core
Interface IRPSendAction

All Superinterfaces:
IRPAction, IRPModelElement

public interface IRPSendAction
extends IRPAction

The IRPSendAction interface represents Send Action elements in an activity or statechart. To add a SendAction element, use addState to add a new state, and then call the method setStateType on the state your created, using "EventState" as the argument, for example:

 IRPState sendActionState = activity_1.getRootState().addState("send_action");
 sendActionState.setStateType("EventState");
 
 
After creating the send action state, you get the send action element as follows:
 IRPSendAction sendActionElement = sendActionState.getSendAction();
 IRPEvent eventA = cameraPackage.addEvent("event_A");
 sendActionElement.setEvent(eventA);
 
 


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.telelogic.rhapsody.core.IRPModelElement
IRPModelElement.OSLCLink
 
Method Summary
 void addArgumentValue(java.lang.String value, int position)
          Provides an argument value for an argument of the event associated with the Send Action element.
 IRPCollection getArgVals()
          Returns a collection of the argument values that were set for the event associated with the Send Action element.
 IRPEvent getEvent()
          Gets the event sent by the Send Action element.
 IRPInterfaceItem getInvokedOperation()
          Returns the IRPInterfaceItem element that is invoked by the Send Action element.
 IRPModelElement getTarget()
          Gets the event target of the Send Action element.
 void setEvent(IRPEvent event)
          Specifies the event sent by the Send Action element.
 void setInvokedOperation(IRPInterfaceItem invokedOperation)
          set property invokedOperation
 void setTarget(IRPModelElement target)
          Sets the specified model element to be the target of the Send Action element.
 
Methods inherited from interface com.telelogic.rhapsody.core.IRPAction
getBody, setBody
 
Methods inherited from interface com.telelogic.rhapsody.core.IRPModelElement
addAssociation, addDependency, addDependencyBetween, addDependencyTo, addLinkToElement, addNewAggr, addProperty, addRedefines, addRemoteDependencyTo, addSpecificStereotype, addStereotype, becomeTemplateInstantiationOf, changeTo, clone, createOSLCLink, deleteDependency, deleteFromProject, deleteOSLCLink, errorMessage, findElementsByFullName, findNestedElement, findNestedElementRecursive, getAllTags, getAnnotations, getAssociationClasses, getBinaryID, getConstraints, getConstraintsByHim, getControlledFiles, getDecorationStyle, getDependencies, getDescription, getDescriptionHTML, getDescriptionPlainText, getDescriptionRTF, getDisplayName, getDisplayNameRTF, getErrorMessage, getFullPathName, getFullPathNameIn, getGUID, getHyperLinks, getIconFileName, getInterfaceName, getIsExternal, getIsOfMetaClass, getIsShowDisplayName, getIsUnresolved, getLocalTags, getMainDiagram, getMetaClass, getName, getNestedElements, getNestedElementsByMetaClass, getNestedElementsRecursive, getNewTermStereotype, getOfTemplate, getOSLCLinks, getOverlayIconFileName, getOverriddenProperties, getOverriddenPropertiesByPattern, getOwnedDependencies, getOwner, getProject, getPropertyValue, getPropertyValueConditional, getPropertyValueConditionalExplicit, getPropertyValueExplicit, getRedefines, getReferences, getRemoteDependencies, getRemoteURI, getRequirementTraceabilityHandle, getSaveUnit, getStereotype, getStereotypes, getTag, getTemplateParameters, getTi, getToolTipHTML, getUserDefinedMetaClass, hasNestedElements, hasPanelWidget, highLightElement, isATemplate, isDescriptionRTF, isDisplayNameRTF, isModified, isRemote, locateInBrowser, lockOnDesignManager, openFeaturesDialog, removeProperty, removeRedefines, removeStereotype, setDecorationStyle, setDescription, setDescriptionAndHyperlinks, setDescriptionHTML, setDescriptionRTF, setDisplayName, setDisplayNameRTF, setGUID, setIsShowDisplayName, setMainDiagram, setName, setOfTemplate, setOwner, setPropertyValue, setRequirementTraceabilityHandle, setStereotype, setTagContextValue, setTagElementValue, setTagValue, setTi, synchronizeTemplateInstantiation, unlockOnDesignManager
 

Method Detail

addArgumentValue

void addArgumentValue(java.lang.String value,
                      int position)
Provides an argument value for an argument of the event associated with the Send Action element.

Parameters:
value - the value to use for the argument, expressed as a string
position - the position of the argument in the argument list (starts at 1)

getArgVals

IRPCollection getArgVals()
Returns a collection of the argument values that were set for the event associated with the Send Action element. The collection consists of strings representing the argument values.

Returns:
the argument values that were set for the event associated with the Send Action element

getEvent

IRPEvent getEvent()
Gets the event sent by the Send Action element.

Returns:
the event sent by the Send Action element

getInvokedOperation

IRPInterfaceItem getInvokedOperation()
Returns the IRPInterfaceItem element that is invoked by the Send Action element.

Returns:
the IRPInterfaceItem element that is invoked by the Send Action element

getTarget

IRPModelElement getTarget()
Gets the event target of the Send Action element.

Returns:
the target of the Send Action element

setEvent

void setEvent(IRPEvent event)
Specifies the event sent by the Send Action element.

Parameters:
event - the event that should be sent by the Send Action element

setInvokedOperation

void setInvokedOperation(IRPInterfaceItem invokedOperation)
set property invokedOperation

Throws:
RhapsodyRuntimeException

setTarget

void setTarget(IRPModelElement target)
Sets the specified model element to be the target of the Send Action element.

Parameters:
target - the model element that should be used as the target of the Send Action element