|
|||||||||||
| 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.XholonWithPorts
A Xholon with ports, so it can set up lateral connections with peers. Ports allow dynamic interactions between Xholons at runtime.
| Field Summary | |
IXholon[] |
port
|
| Fields inherited from class org.primordion.xholon.base.Xholon |
DEFAULT_LEVEL, interaction, interactionsEnabled |
| 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 | |
XholonWithPorts()
Constructor. |
|
| Method Summary | |
void |
configure()
Perform some action, typically once at start up; MAY be overridden. |
static int |
getMaxPorts()
Get the maximum number of ports for any xholon in the model. |
IXholon |
getPort(int portNum)
Get the port that corresponds to this index (0 indexed). |
void |
initialize()
Initialize the tree node. |
boolean |
isActiveObject()
Is this xholon or xholon class an Active Object? |
boolean |
isBound(IXholon port)
Is this port bound to anything? If a port is bound, then it will be possible for the local IXholon to send a message to, or get/set a val on, a remote IXholon. |
boolean |
isContainer()
Is this xholon or xholon class a Container? |
boolean |
isPassiveObject()
Is this xholon or xholon class a Passive Object? |
void |
postConfigure()
Perform some action, typically once at start up; MAY be overridden. |
static void |
setMaxPorts(int mPorts)
Set the maximum number of ports for any xholon in the model. |
void |
setPorts()
Set ports, by creating an array of ports. |
void |
terminate()
Terminate a UML2 state machine, and optionally terminate the xholon that owns the state machine. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public IXholon[] port
| Constructor Detail |
public XholonWithPorts()
| Method Detail |
public void initialize()
IXholon
initialize in interface IXholoninitialize in class Xholonpublic boolean isContainer()
IXholon
isContainer in interface IXholonisContainer in class Xholonpublic boolean isActiveObject()
IXholon
isActiveObject in interface IXholonisActiveObject in class Xholonpublic boolean isPassiveObject()
IXholon
isPassiveObject in interface IXholonisPassiveObject in class Xholonpublic static void setMaxPorts(int mPorts)
mPorts - Maximum number of ports.public static int getMaxPorts()
public IXholon getPort(int portNum)
IXholon
getPort in interface IXholongetPort in class Xholonpublic boolean isBound(IXholon port)
IXholonIf the port is intended to be a direct reference to another IXholon, then isBound() will return true if the port actually references a concrete IXholon, and will return false if the port value is null.
If the port is intended to be an IPort, then isBound() will return true if there is an end-to-end connection to a remote IXholon, and will return false if the port value is null or if it does not connect all the way through to a remote IXholon.
isBound in interface IXholonisBound in class Xholonpublic void setPorts()
IXholon
setPorts in interface IXholonsetPorts in class Xholonpublic void configure()
IXholon
configure in interface IXholonconfigure in class Xholonpublic void postConfigure()
IXholon
postConfigure in interface IXholonpostConfigure in class Xholonpublic void terminate()
IXholon
terminate in interface IXholonterminate in class Xholon
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||