|
|||||||||||
| 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.app.Application
This is an abstract class from which all Xholon applications should subclass.
| Nested Class Summary | |
class |
Application.GridViewerDetails
An inner class that contains all data required for the viewing of a grid. |
| Field Summary |
| 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 | |
Application()
Constructor. |
|
| Method Summary | |
void |
about()
Display brief information about Xholon and the application. |
static void |
appMain(java.lang.String[] args,
java.lang.String className,
java.lang.String defaultConfigFileName)
Perform most or all of the work required of main() in an Application subclass. |
static IApplication |
getApplication(IXholon xhNode)
Get the instance of Application that the Xholon node is part of. |
boolean |
getAppM()
|
Control |
getAppRoot()
Get the application root. |
java.lang.Class |
getClass(java.lang.String className)
Return the class given the class name. |
java.lang.String |
getClassDetailsFile()
|
java.lang.String |
getCompositeStructureHierarchyFile()
|
int |
getControllerState()
Get state of the controller. |
java.lang.String |
getDataPlotterParams()
|
boolean |
getErrorM()
|
java.lang.String |
getGraphicalNetworkViewerClassName()
graphicalNetworkViewerClassName |
java.lang.String |
getGraphicalNetworkViewerParams()
graphicalNetworkViewerParams |
java.lang.String |
getGraphicalTreeViewerParams()
|
java.lang.String |
getGridPanelClassName()
|
java.lang.String |
getHistogramPlotterParams()
|
boolean |
getInfoM()
|
java.lang.String |
getInformationFile()
|
java.lang.String |
getInheritanceHierarchyFile()
|
java.lang.String |
getInteractionParams()
|
java.lang.String |
getJavaActivityClassName()
|
java.lang.String |
getJavaClassName()
|
java.lang.String |
getJavaXhClassClassName()
|
java.lang.String |
getJavaXhClassName()
|
int |
getMaxActivities()
|
int |
getMaxPorts()
|
int |
getMaxProcessLoops()
|
int |
getMaxStateMachineEntities()
|
int |
getMaxXholonClasses()
|
int |
getMaxXholons()
|
java.lang.String |
getModelName()
Get the model name. |
long |
getRandomNumberSeed()
|
IXholon |
getRoot()
Get the model root. |
boolean |
getSaveSnapshots()
|
int |
getSizeMessageQueue()
|
java.lang.String |
getSnapshotParams()
|
int |
getTimeStepInterval()
|
boolean |
getTreeNodeFactoryDynamic()
|
boolean |
getUseDataPlotter()
|
boolean |
getUseGnuplot_Hist()
|
boolean |
getUseGnuplot()
|
boolean |
getUseGraphicalNetworkViewer()
|
boolean |
getUseGraphicalTreeViewer()
|
boolean |
getUseGridViewer()
|
boolean |
getUseHistogramPlotter()
|
boolean |
getUseInteractions()
|
boolean |
getUseJFreeChart_Hist()
|
boolean |
getUseJFreeChart()
|
boolean |
getUseTextTree()
|
boolean |
getUseVrml()
|
java.lang.String |
getVrmlParams()
|
java.lang.String |
getVrmlWriterClassName()
|
java.lang.String |
getXhymAgent()
xhymAgent |
java.lang.String |
getXincludePath()
|
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 xholon tree. |
static void |
setApplication(IApplication app)
Set an instance of IApplication. |
void |
setAppM(boolean appM)
|
void |
setClassDetailsFile(java.lang.String classDetailsFile)
|
void |
setCompositeStructureHierarchyFile(java.lang.String compositeStructureHierarchyFile)
|
void |
setControllerState(int controllerState)
Set state of the controller for this app. |
void |
setDataPlotterParams(java.lang.String dataPlotterParams)
dataPlotterParams |
void |
setErrorM(boolean errorM)
|
void |
setGraphicalNetworkViewerClassName(java.lang.String graphicalNetworkViewerClassName)
graphicalNetworkViewerClassName |
void |
setGraphicalNetworkViewerParams(java.lang.String graphicalNetworkViewerParams)
|
void |
setGraphicalTreeViewerParams(java.lang.String graphicalTreeViewerParams)
|
void |
setGridPanelClassName(java.lang.String gridPanelClassName)
|
void |
setGridViewerParams(java.lang.String gridViewerParams)
|
void |
setHistogramPlotterParams(java.lang.String histogramPlotterParams)
histogramPlotterParams |
void |
setInfoM(boolean infoM)
|
void |
setInformationFile(java.lang.String informationFile)
|
void |
setInheritanceHierarchyFile(java.lang.String inheritanceHierarchyFile)
|
void |
setInteractionParams(java.lang.String interactionParams)
|
void |
setJavaActivityClassName(java.lang.String javaActivityClassName)
|
void |
setJavaClassName(java.lang.String javaClassName)
|
void |
setJavaXhClassClassName(java.lang.String javaXhClassClassName)
|
void |
setJavaXhClassName(java.lang.String javaXhClassName)
|
void |
setMaxActivities(int maxActivities)
|
void |
setMaxPorts(int maxPorts)
maxPorts |
void |
setMaxProcessLoops(int maxProcessLoops)
|
void |
setMaxStateMachineEntities(int maxStateMachineEntities)
|
void |
setMaxXholonClasses(int maxXholonClasses)
|
void |
setMaxXholons(int maxXholons)
|
void |
setModelName(java.lang.String modelName)
modelName The modelName to set. |
boolean |
setParam(java.lang.String pName,
java.lang.String pValue)
Set the value of a parameter. |
void |
setRandomNumberSeed(long randomNumberSeed)
randomNumberSeed |
void |
setSaveSnapshots(boolean saveSnapshots)
|
void |
setSizeMessageQueue(int sizeMessageQueue)
sizeMessageQueue Set the size of the message queue. |
void |
setSnapshotParams(java.lang.String snapshotParams)
|
void |
setTimeStepInterval(int timeStepInterval)
|
void |
setTreeNodeFactoryDynamic(boolean treeNodeFactoryDynamic)
treeNodeFactoryDynamic |
void |
setUseDataPlotter(java.lang.String useDataPlotter)
|
void |
setUseGraphicalNetworkViewer(boolean useGraphicalNetworkViewer)
|
void |
setUseGraphicalTreeViewer(boolean useGraphicalTreeViewer)
|
void |
setUseGridViewer(boolean useGridViewer)
|
void |
setUseHistogramPlotter(java.lang.String useHistogramPlotter)
|
void |
setUseInteractions(boolean useInteractions)
|
void |
setUseTextTree(boolean useTextTree)
|
void |
setUseVrml(boolean useVrml)
|
void |
setVrmlParams(java.lang.String vrmlParams)
|
void |
setVrmlWriterClassName(java.lang.String vrmlWriterClassName)
|
void |
setXhymAgent(java.lang.String xhymAgent)
xhymAgent |
static void |
setXincludePath(java.lang.String xincludePath)
xincludePath |
void |
wrapup()
Wrapup any unfinished business in the application. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Application()
| Method Detail |
public void setClassDetailsFile(java.lang.String classDetailsFile)
classDetailsFile - The classDetailsFile to set.public void setCompositeStructureHierarchyFile(java.lang.String compositeStructureHierarchyFile)
compositeStructureHierarchyFile - The compositeStructureHierarchyFile to set.public void setInheritanceHierarchyFile(java.lang.String inheritanceHierarchyFile)
inheritanceHierarchyFile - The inheritanceHierarchyFile to set.public void setInformationFile(java.lang.String informationFile)
informationFile - The informationFile to set.public void setMaxProcessLoops(int maxProcessLoops)
maxProcessLoops - The maxProcessLoops to set.public void setTimeStepInterval(int timeStepInterval)
timeStepInterval - The timeStepInterval to set.public void setMaxStateMachineEntities(int maxStateMachineEntities)
maxStateMachineEntities - The maxStateMachineEntities to set.public void setMaxActivities(int maxActivities)
maxActivities - The maxActivities to set.public void setMaxXholonClasses(int maxXholonClasses)
maxXholonClasses - The maxXholonClasses to set.public void setMaxXholons(int maxXholons)
maxXholons - The maxXholons to set.public void setAppM(boolean appM)
appM - The appM to set.public void setInfoM(boolean infoM)
infoM - The infoM to set.public void setErrorM(boolean errorM)
errorM - The errorM to set.public void setUseTextTree(boolean useTextTree)
useTextTree - The useTextTree to set.public void setUseGraphicalTreeViewer(boolean useGraphicalTreeViewer)
useGraphicalTreeViewer - The useGraphicalTreeViewer to set.public void setGraphicalTreeViewerParams(java.lang.String graphicalTreeViewerParams)
public void setUseGraphicalNetworkViewer(boolean useGraphicalNetworkViewer)
useGraphicalNetworkViewer - The useGraphicalNetworkViewer to set.public void setGraphicalNetworkViewerClassName(java.lang.String graphicalNetworkViewerClassName)
public void setGraphicalNetworkViewerParams(java.lang.String graphicalNetworkViewerParams)
public void setUseGridViewer(boolean useGridViewer)
useGridViewer - The useGridViewer to set.public void setGridPanelClassName(java.lang.String gridPanelClassName)
gridPanelClassName - The name of the GridViewer Panel Java class.public void setGridViewerParams(java.lang.String gridViewerParams)
gridViewerParams - GridViewer parameters.public void setUseDataPlotter(java.lang.String useDataPlotter)
useDataPlotter - The useDataPlotter to set.public void setDataPlotterParams(java.lang.String dataPlotterParams)
public void setUseHistogramPlotter(java.lang.String useHistogramPlotter)
useHistogramPlotter - The useHistogramPlotter to set.public void setHistogramPlotterParams(java.lang.String histogramPlotterParams)
public void setUseInteractions(boolean useInteractions)
useInteractions - The useInteractions to set.public void setInteractionParams(java.lang.String interactionParams)
interactionParams - public void setUseVrml(boolean useVrml)
useVrml - The useVrml to set.public void setVrmlWriterClassName(java.lang.String vrmlWriterClassName)
vrmlWriterClassName - public void setVrmlParams(java.lang.String vrmlParams)
vrmlParams - public void setJavaClassName(java.lang.String javaClassName)
javaClassName - The javaClassName to set.public void setJavaXhClassName(java.lang.String javaXhClassName)
javaXhClassName - The javaXhClassName to set.public void setJavaXhClassClassName(java.lang.String javaXhClassClassName)
javaXhClassClassName - The javaXhClassClassName to set.public void setJavaActivityClassName(java.lang.String javaActivityClassName)
javaActivityClassName - public void setSaveSnapshots(boolean saveSnapshots)
saveSnapshots - The saveSnapshots to set.public void setSnapshotParams(java.lang.String snapshotParams)
snapshotParams - public void setModelName(java.lang.String modelName)
public void setSizeMessageQueue(int sizeMessageQueue)
public void setTreeNodeFactoryDynamic(boolean treeNodeFactoryDynamic)
public void setRandomNumberSeed(long randomNumberSeed)
public void setMaxPorts(int maxPorts)
public static void setXincludePath(java.lang.String xincludePath)
public void setXhymAgent(java.lang.String xhymAgent)
public java.lang.String getClassDetailsFile()
public java.lang.String getCompositeStructureHierarchyFile()
public java.lang.String getInheritanceHierarchyFile()
public java.lang.String getInformationFile()
public int getMaxProcessLoops()
public int getTimeStepInterval()
public int getMaxStateMachineEntities()
public int getMaxActivities()
public int getMaxXholonClasses()
public int getMaxXholons()
public boolean getAppM()
public boolean getInfoM()
public boolean getErrorM()
public boolean getUseTextTree()
public boolean getUseGraphicalTreeViewer()
public java.lang.String getGraphicalTreeViewerParams()
public boolean getUseGraphicalNetworkViewer()
public java.lang.String getGraphicalNetworkViewerClassName()
public java.lang.String getGraphicalNetworkViewerParams()
public boolean getUseGridViewer()
public java.lang.String getGridPanelClassName()
public boolean getUseDataPlotter()
public boolean getUseJFreeChart()
public boolean getUseGnuplot()
public java.lang.String getDataPlotterParams()
public boolean getUseHistogramPlotter()
public boolean getUseJFreeChart_Hist()
public boolean getUseGnuplot_Hist()
public java.lang.String getHistogramPlotterParams()
public boolean getUseInteractions()
public java.lang.String getInteractionParams()
public boolean getUseVrml()
public java.lang.String getVrmlWriterClassName()
public java.lang.String getVrmlParams()
public java.lang.String getJavaClassName()
public java.lang.String getJavaXhClassName()
public java.lang.String getJavaXhClassClassName()
public java.lang.String getJavaActivityClassName()
public boolean getSaveSnapshots()
public java.lang.String getSnapshotParams()
public java.lang.String getModelName()
IApplication
getModelName in interface IApplicationpublic int getSizeMessageQueue()
public boolean getTreeNodeFactoryDynamic()
public long getRandomNumberSeed()
public int getMaxPorts()
public java.lang.String getXincludePath()
public java.lang.String getXhymAgent()
public java.lang.Class getClass(java.lang.String className)
className - The name of a Java class.
public static IApplication getApplication(IXholon xhNode)
xhNode - An instance of IXholon.
public static void setApplication(IApplication app)
app - An instance of IApplication.public void initGui(java.lang.Object gui)
IApplication
initGui in interface IApplicationgui - The JTree gui.public void initControl()
IApplication
initControl in interface IApplicationpublic void setControllerState(int controllerState)
IApplication
setControllerState in interface IApplicationcontrollerState - The current controller state.public int getControllerState()
IApplication
getControllerState in interface IApplicationpublic IXholon getRoot()
IApplication
getRoot in interface IApplicationpublic Control getAppRoot()
IApplication
getAppRoot in interface IApplicationpublic void initialize(java.lang.String configFileName)
IApplication
initialize in interface IApplicationconfigFileName - Name of the configuration file.public void process()
IApplication
process in interface IApplicationpublic void wrapup()
IApplication
wrapup in interface IApplicationpublic void readConfigFromFileXml(java.lang.String fileName)
IApplication
readConfigFromFileXml in interface IApplicationfileName - Name of the configuration file. ex: Config_HelloWorld.xml
public boolean setParam(java.lang.String pName,
java.lang.String pValue)
IApplication
setParam in interface IApplicationpName - Parameter name.pValue - Parameter value.public void resetViewers()
IApplication
resetViewers in interface IApplicationpublic void initViewers()
IApplication
initViewers in interface IApplicationpublic void saveSnapshot()
saveSnapshot in interface IApplicationpublic void about()
IApplication
about in interface IApplicationpublic void information()
IApplication
information in interface IApplication
public IViewer invokeGraphicalTreeViewer(IXholon xhStart,
java.lang.String graphicalNetworkViewerParams)
IApplication
invokeGraphicalTreeViewer in interface IApplicationxhStart - The start node whose contents will be graphed.graphicalNetworkViewerParams - A set of comma-delimited parameters.public IViewer invokeGraphicalTreeViewer()
IApplication
invokeGraphicalTreeViewer in interface IApplication
public IViewer invokeGraphicalNetworkViewer(IXholon xhStart,
java.lang.String graphicalNetworkViewerParams)
IApplication
invokeGraphicalNetworkViewer in interface IApplicationxhStart - The start node whose contents will be graphed.graphicalNetworkViewerParams - A set of comma-delimited parameters.public IViewer invokeGraphicalNetworkViewer()
IApplication
invokeGraphicalNetworkViewer in interface IApplicationpublic IViewer invokeDataPlotter()
IApplication
invokeDataPlotter in interface IApplicationpublic IViewer invokeHistogramPlotter()
IApplication
invokeHistogramPlotter in interface IApplicationpublic IViewer invokeInteraction()
IApplication
invokeInteraction in interface IApplication
public static void appMain(java.lang.String[] args,
java.lang.String className,
java.lang.String defaultConfigFileName)
args - Arguments passed in from the command line.className - Name of the Application subclass. ex: AppHelloWorlddefaultConfigFileName - Name and path of a default _xhn.xml configuration file.
ex: "./config/HelloWorld/HelloWorld_xhn.xml"
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||