|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 IInteraction
outputFormat
- One of FORMAT_UML_GRAPH, FORMAT_SDEDIT, FORMAT_SDEDIT_SOCKET.public void setSocketHost(java.lang.String socketHost)
IInteraction
setSocketHost
in interface IInteraction
socketHost
- A valid socket host (ex: localhost).public void setSocketPort(int socketPort)
IInteraction
setSocketPort
in interface IInteraction
socketPort
- A valid socket port (ex: 60001).public void setShowStates(boolean showStates)
IInteraction
setShowStates
in interface IInteraction
showStates
- true or falsepublic int getOutputFormat()
IInteraction
getOutputFormat
in interface IInteraction
public java.lang.String getSocketHost()
IInteraction
getSocketHost
in interface IInteraction
public int getSocketPort()
IInteraction
getSocketPort
in interface IInteraction
public boolean getShowStates()
IInteraction
getShowStates
in interface IInteraction
public void addMessage(Message msg)
IInteraction
addMessage
in interface IInteraction
msg
- The message.public void addMessage(int signal, java.lang.Object data, IXholon sender, IXholon receiver, int index)
IInteraction
addMessage
in interface IInteraction
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)
IInteraction
addState
in interface IInteraction
state
- A state within a state machine.public void processReceivedMessage(Message msg)
IInteraction
processReceivedMessage
in interface IInteraction
processReceivedMessage
in class Xholon
public void createSequenceDiagram(java.lang.String modelName)
IInteraction
createSequenceDiagram
in interface IInteraction
modelName
- The name of this model.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |