|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.primordion.xholon.base.Xholon
org.primordion.xholon.base.Interaction
UML 2.0 Interaction.
| Field Summary |
| Fields inherited from class org.primordion.xholon.base.Xholon |
DEFAULT_LEVEL, interaction, interactionsEnabled |
| Fields inherited from interface org.primordion.xholon.base.IInteraction |
FORMAT_NONE, FORMAT_SDEDIT, FORMAT_SDEDIT_SOCKET, FORMAT_UML_GRAPH, MAX_DATA_LEN, MAX_LIFELINES_STORED, MAX_MESSAGES_STORED, MAX_NAME_LEN |
| Fields inherited from interface org.primordion.xholon.base.IXholon |
DEFAULT_SIZE_MSG_Q, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx |
| Constructor Summary | |
Interaction()
Constructor. |
|
| Method Summary | |
void |
addMessage(int signal,
java.lang.Object data,
IXholon sender,
IXholon receiver,
int index)
Add a message to the interaction. |
void |
addMessage(Message msg)
Add a message to the interaction. |
void |
addState(IStateMachineEntity state)
Add a state to the sequence diagram, but only if getShowStates() == true. |
void |
createSequenceDiagram(java.lang.String modelName)
Create a sequence diagram from the interaction. |
int |
getOutputFormat()
Get the output format. |
boolean |
getShowStates()
Get whether or not states will be shown on the sequence diagram. |
java.lang.String |
getSocketHost()
Get the host for a socket connection, if using sdedit as a sequence diagram server. |
int |
getSocketPort()
Get the port for a socket connection, if using sdedit as a sequence diagram server. |
void |
processReceivedMessage(Message msg)
Process a message that was previously sent from one Xholon instance (the sender) and added to the Interaction, and has now been received by another Xholon instance (the receiver). |
void |
setOutputFormat(int outputFormat)
Set the output format. |
void |
setShowStates(boolean showStates)
Set whether or not to show states on the sequence diagram. |
void |
setSocketHost(java.lang.String socketHost)
Set the host for a socket connection, if using sdedit as a sequence diagram server. |
void |
setSocketPort(int socketPort)
Set the port for a socket connection, if using sdedit as a sequence diagram server. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Interaction()
| Method Detail |
public void setOutputFormat(int outputFormat)
IInteraction
setOutputFormat in interface IInteractionoutputFormat - One of FORMAT_UML_GRAPH, FORMAT_SDEDIT, FORMAT_SDEDIT_SOCKET.public void setSocketHost(java.lang.String socketHost)
IInteraction
setSocketHost in interface IInteractionsocketHost - A valid socket host (ex: localhost).public void setSocketPort(int socketPort)
IInteraction
setSocketPort in interface IInteractionsocketPort - A valid socket port (ex: 60001).public void setShowStates(boolean showStates)
IInteraction
setShowStates in interface IInteractionshowStates - true or falsepublic int getOutputFormat()
IInteraction
getOutputFormat in interface IInteractionpublic java.lang.String getSocketHost()
IInteraction
getSocketHost in interface IInteractionpublic int getSocketPort()
IInteraction
getSocketPort in interface IInteractionpublic boolean getShowStates()
IInteraction
getShowStates in interface IInteractionpublic void addMessage(Message msg)
IInteraction
addMessage in interface IInteractionmsg - The message.
public void addMessage(int signal,
java.lang.Object data,
IXholon sender,
IXholon receiver,
int index)
IInteraction
addMessage in interface IInteractionsignal - A signal that identifies the type of message.data - Optional data carried by the message.sender - The sender of the message.receiver - The intended receiver of the message.index - A port replication index.public void addState(IStateMachineEntity state)
IInteraction
addState in interface IInteractionstate - A state within a state machine.public void processReceivedMessage(Message msg)
IInteraction
processReceivedMessage in interface IInteractionprocessReceivedMessage in class Xholonpublic void createSequenceDiagram(java.lang.String modelName)
IInteraction
createSequenceDiagram in interface IInteractionmodelName - The name of this model.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||