|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
UML 2.0 Interaction.
| Field Summary | |
static int |
FORMAT_NONE
|
static int |
FORMAT_SDEDIT
|
static int |
FORMAT_SDEDIT_SOCKET
|
static int |
FORMAT_UML_GRAPH
|
static int |
MAX_DATA_LEN
|
static int |
MAX_LIFELINES_STORED
|
static int |
MAX_MESSAGES_STORED
|
static int |
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 |
| 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. |
| Field Detail |
public static final int MAX_MESSAGES_STORED
public static final int MAX_LIFELINES_STORED
public static final int MAX_NAME_LEN
public static final int MAX_DATA_LEN
public static final int FORMAT_NONE
public static final int FORMAT_UML_GRAPH
public static final int FORMAT_SDEDIT
public static final int FORMAT_SDEDIT_SOCKET
| Method Detail |
public void setOutputFormat(int outputFormat)
outputFormat - One of FORMAT_UML_GRAPH, FORMAT_SDEDIT, FORMAT_SDEDIT_SOCKET.public void setSocketHost(java.lang.String socketHost)
socketHost - A valid socket host (ex: localhost).public void setSocketPort(int socketPort)
socketPort - A valid socket port (ex: 60001).public void setShowStates(boolean showStates)
showStates - true or falsepublic int getOutputFormat()
public java.lang.String getSocketHost()
public int getSocketPort()
public boolean getShowStates()
public void addMessage(Message msg)
msg - The message.
public void addMessage(int signal,
java.lang.Object data,
IXholon sender,
IXholon receiver,
int index)
signal - 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)
state - A state within a state machine.public void processReceivedMessage(Message msg)
processReceivedMessage in interface IXholonmsg - The message that was received.IXholon.processReceivedMessage(org.primordion.xholon.base.Message)public void createSequenceDiagram(java.lang.String modelName)
modelName - The name of this model.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||