|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Every Xholon application proceeds through three phases, which are declared in this interface: (1) initialize, (2) process, (3) wrapup. Applications also need to read their configuration from a file.
Field Summary |
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 |
about()
Display brief information about Xholon and the application. |
Control |
getAppRoot()
Get the application root. |
int |
getControllerState()
Get state of the controller. |
java.lang.String |
getModelName()
Get the model name. |
IXholon |
getRoot()
Get the model root. |
void |
information()
Display detailed information about the application. |
void |
initControl()
Initialize the control aspects of the application. |
void |
initGui(java.lang.Object gui)
Initialize the GUI. |
void |
initialize(java.lang.String configFileName)
Initialize the application. |
void |
initViewers()
Initialize any View tools to be used by the application. |
IViewer |
invokeDataPlotter()
Invoke the data plotter. |
IViewer |
invokeGraphicalNetworkViewer()
Invoke the graphical network viewer. |
IViewer |
invokeGraphicalNetworkViewer(IXholon xhStart,
java.lang.String graphicalNetworkViewerParams)
Invoke the graphical network viewer. |
IViewer |
invokeGraphicalTreeViewer()
Invoke the graphical tree viewer. |
IViewer |
invokeGraphicalTreeViewer(IXholon xhStart,
java.lang.String graphicalNetworkViewerParams)
Invoke the graphical tree viewer. |
IViewer |
invokeHistogramPlotter()
Invoke the histogram plotter. |
IViewer |
invokeInteraction()
Invoke the interaction viewer. |
void |
process()
Process time steps during the lifetime of the application. |
void |
readConfigFromFileXml(java.lang.String fileName)
Read configuration values from an XML file. |
void |
resetViewers()
Reset all viewers to their default values. |
void |
saveSnapshot()
Save snapshot of the xholon tree. |
void |
setControllerState(int controllerState)
Set state of the controller for this app. |
boolean |
setParam(java.lang.String pName,
java.lang.String pValue)
Set the value of a parameter. |
void |
wrapup()
Wrapup any unfinished business in the application. |
Method Detail |
public void initialize(java.lang.String configFileName)
configFileName
- Name of the configuration file.public void process()
public void wrapup()
public void readConfigFromFileXml(java.lang.String fileName)
fileName
- Name of the configuration file. ex: Config_HelloWorld.xmlpublic boolean setParam(java.lang.String pName, java.lang.String pValue)
pName
- Parameter name.pValue
- Parameter value.public void setControllerState(int controllerState)
controllerState
- The current controller state.public int getControllerState()
public IXholon getRoot()
public Control getAppRoot()
public void initGui(java.lang.Object gui)
gui
- The JTree gui.public void initControl()
public void resetViewers()
public void initViewers()
public void saveSnapshot()
public void about()
public void information()
public java.lang.String getModelName()
public IViewer invokeGraphicalTreeViewer()
public IViewer invokeGraphicalTreeViewer(IXholon xhStart, java.lang.String graphicalNetworkViewerParams)
xhStart
- The start node whose contents will be graphed.graphicalNetworkViewerParams
- A set of comma-delimited parameters.public IViewer invokeGraphicalNetworkViewer()
public IViewer invokeGraphicalNetworkViewer(IXholon xhStart, java.lang.String graphicalNetworkViewerParams)
xhStart
- The start node whose contents will be graphed.graphicalNetworkViewerParams
- A set of comma-delimited parameters.public IViewer invokeDataPlotter()
public IViewer invokeHistogramPlotter()
public IViewer invokeInteraction()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |