|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRPSendAction
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 |
Method Detail |
---|
void addArgumentValue(java.lang.String value, int position)
value
- the value to use for the argument, expressed as a stringposition
- the position of the argument in the argument list (starts at 1)IRPCollection getArgVals()
IRPEvent getEvent()
IRPInterfaceItem getInvokedOperation()
IRPModelElement getTarget()
void setEvent(IRPEvent event)
event
- the event that should be sent by the Send Action elementvoid setInvokedOperation(IRPInterfaceItem invokedOperation)
RhapsodyRuntimeException
void setTarget(IRPModelElement target)
target
- the model element that should be used as the target of the Send Action element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |