public abstract class Application extends AbstractApplication implements IApplication
DEFAULT_SIZE_MSG_Q, DEFAULT_SIZE_SYSTEM_MSG_Q, GETNAME_DEFAULT, GETNAME_LOCALPART_ID, GETNAME_NOROLENAME, GETNAME_ROLENAME_OR_CLASSNAME, GETNAME_ROLENAMESEP_, GETNAME_SIZE_TEMPLATE, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx, XHOLON_ID_DEFAULT, XHOLON_ID_NULL
Constructor and Description |
---|
Application()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
IXholon |
cacheIXholonAttributes()
Temporarily set attributes that ref IXholon nodes, to null.
|
void |
clearConsole() |
void |
createChart(IXholon chartRoot)
Create a JFreeChart.
|
int |
createGridViewer(int vIx)
Create a grid viewer.
|
void |
createInteractions()
Enable the creation of interactions while the app is running.
|
java.lang.Class<IXholon> |
findAppSpecificClass(java.lang.String className)
Find an app-specific class that corresponds to a class name.
|
int |
findAppSpecificConstantValue(java.lang.Class<?> clazz,
java.lang.String constName)
Find a class Integer constant, given the name of the constant.
|
java.lang.Object |
findGwtClientBundle()
Return an instance of com.google.gwt.resources.client.ClientBundleWithLookup .
|
java.lang.String |
getAbout()
Get some text that can be used to describe what Xholon is about.
|
IApplication |
getApp()
Get the instance of Application that owns this Xholon instance and the model of which it is a part.
|
static IApplication |
getApplication()
Get the singleton instance of Application.
|
static IApplication |
getApplication(IXholon xhNode)
Get the instance of Application that the Xholon node is part of.
|
static IApplication |
getApplication(java.lang.String appName)
Get the first instance of Application that has the specified name.
|
static java.lang.String[] |
getApplicationNames()
Get the names of all current applications.
|
IApplication |
getApplicationOther(IXholon xhNode)
Get the instance of Application that the Xholon node is part of.
|
IApplication |
getApplicationOther(java.lang.String appName)
Get the first instance of Application that has the specified name.
|
static IApplication[] |
getApplications()
Get all current applications.
|
boolean |
getAppM() |
IXholon |
getAppRoot()
Get the application root.
|
java.lang.Object |
getAppSpecificAttribute(IXholon node,
java.lang.Class<IXholon> clazz,
java.lang.String attrName)
Get the value of an application-specific non-port attribute.
|
java.lang.Object[][] |
getAppSpecificAttributes(IXholon node,
java.lang.Class<IXholon> clazz,
boolean returnAll)
Get all application-specific attributes that are accessible using a method that starts with "get" or "is".
|
IXholon |
getAppSpecificObjectVal(IXholon node,
java.lang.Class<IXholon> clazz,
java.lang.String attrName)
Get the value of an Object attribute, using a getter method.
|
java.lang.String |
getAppSpecificObjectValNames(IXholon node,
java.lang.Class<IXholon> clazz)
Get a list of port names for a node.
|
java.util.List |
getAppSpecificObjectVals(IXholon node,
java.lang.Class<IXholon> clazz)
keep it consistent with getAllPorts, or return an array ?
Get a list of ports for a node.
|
int |
getAttributePostConfigAction()
attributePostConfigAction
|
IChartViewer |
getChartViewer() |
java.lang.String |
getClassDetailsFile() |
IXholonClass |
getClassNode(int id)
Get an instance of XholonClass, given its numeric id.
|
IXholonClass |
getClassNode(java.lang.String cName)
Get an instance of XholonClass, given its name.
|
java.lang.String |
getCompositeStructureHierarchyFile() |
java.lang.String |
getConfigAppName()
Get the name of this application based on the _xhn.xml config file name.
|
java.lang.String |
getConfigFileName()
Get the name of the config file.
|
java.lang.String |
getConfigPathName()
Get the name of the path (folder) that contains the _xhn.xml config file.
|
int |
getControllerState()
Get state of the controller.
|
java.lang.String |
getControllerStateName()
Get displayable name of the state.
|
IControl |
getControlRoot()
Get the root of the Control hierarchy.
|
java.lang.String |
getDataPlotterParams() |
boolean |
getDebugM() |
IMechanism |
getDefaultMechanism()
Get the default Mechanism.
|
boolean |
getErrorM() |
ITreeNodeFactory |
getFactory()
Get the factory that creates IXholon instances.
|
java.lang.String |
getGraphicalNetworkViewerClassName()
graphicalNetworkViewerClassName
|
java.lang.String |
getGraphicalNetworkViewerParams()
graphicalNetworkViewerParams
|
java.lang.String |
getGraphicalTreeViewerParams() |
java.lang.String |
getGridPanelClassName() |
GridViewerDetails |
getGridViewer(int vIx)
Get a grid viewer.
|
java.lang.String |
getHistogramPlotterParams() |
IHistogramViewer |
getHistogramViewer() |
java.lang.String |
getHostPageBaseURL()
Return the cached value of GWT.getHostPageBaseURL().
|
java.lang.String |
getImageFile() |
boolean |
getInfoM() |
java.lang.String |
getInformationFile() |
IInheritanceHierarchy |
getInherHier()
Get this application's InheritanceHierarchy object.
|
java.lang.String |
getInheritanceHierarchyFile() |
int |
getInitialControllerState()
initialControllerState
|
IInteraction |
getInteraction()
Get the object that handles the capture and subsequent display of interactions.
|
java.lang.String |
getInteractionParams() |
java.lang.String |
getIQueueImplName()
iQueueImplName
|
java.lang.String |
getJavaActivityClassName()
Get the name of the default Java Activity class for this application.
|
java.lang.String |
getJavaClassName() |
java.lang.String |
getJavaXhClassClassName()
Get the name of the concrete Java IXholonClass class for this application.
|
java.lang.String |
getJavaXhClassName()
Get the name of the default Java IXholon class for this application.
|
java.lang.String |
getJdbcParams()
jdbcParams
|
java.lang.String |
getJpaParams()
jpaParams
|
static IApplication |
getLastInsertedApplication()
Get the last inserted application.
|
int |
getMaxActivities() |
int |
getMaxPorts() |
int |
getMaxProcessLoops() |
int |
getMaxStateMachineEntities() |
int |
getMaxXholonClasses() |
int |
getMaxXholons() |
IMechanism |
getMechRoot()
Get the Mechanism root.
|
java.lang.String |
getModelName()
Get the model name.
|
IQueue |
getMsgQ()
Get the message Q.
|
java.lang.String |
getName()
Return the class given the class name.
|
IGraphicalNetworkViewer |
getNetworkViewerJung() |
int |
getNextId()
Get the next available id for assignment to an instance of Xholon.
|
int |
getNextXholonClassId()
Get the next available id for assignment to an instance of XholonClass.
|
static int |
getNumApplications()
Get the number of separate applications currently loaded.
|
java.lang.String |
getParam(java.lang.String pName)
Get the value of a parameter.
|
long |
getRandomNumberSeed() |
java.lang.String |
getRoleName()
Get name of the role played by this Xholon within a specific context.
|
IXholon |
getRoot()
Get the model root.
|
boolean |
getSaveSnapshots() |
java.lang.String |
getScriptParams()
Get script parameters, for use by ScriptService.
|
IXholon |
getService(java.lang.String serviceName)
Get a named service.
|
int |
getSizeMessageQueue() |
java.lang.String |
getSnapshotParams() |
IXholon |
getSrvRoot()
Get the XholonService root.
|
IQueue |
getSystemMsgQ()
Get the system message Q.
|
int |
getTimeStep()
Get the current time step of the executing application.
|
int |
getTimeStepInterval()
Get the time step interval defined for this application.
|
boolean |
getTreeNodeFactoryDynamic()
Returns whether the factory type is TreeNodeFactoryDynamic.
|
IGraphicalTreeViewer |
getTreeViewerJung() |
java.lang.String |
getUri()
Get the Uniform Resource Identifier (URI) that identifies this Xholon node.
|
boolean |
getUseC3() |
boolean |
getUseD3_Hist() |
boolean |
getUseDataPlotter() |
boolean |
getUseGnuplot_Hist() |
boolean |
getUseGnuplot() |
boolean |
getUseGoogle() |
boolean |
getUseGoogle2_Hist() |
boolean |
getUseGoogle2() |
boolean |
getUseGraphicalNetworkViewer() |
boolean |
getUseGraphicalTreeViewer() |
boolean |
getUseGridViewer() |
boolean |
getUseHistogramPlotter() |
boolean |
getUseInteractions() |
boolean |
getUseJdbc() |
boolean |
getUseJFreeChart_Hist() |
boolean |
getUseJFreeChart() |
boolean |
getUseJpa() |
boolean |
getUseNVD3() |
boolean |
getUseTextTree() |
boolean |
getUseVrml() |
boolean |
getUseXholon2Gui()
useXholon2Gui
|
IControl |
getView()
Get the root View node.
|
java.lang.String |
getVrmlParams() |
java.lang.String |
getVrmlWriterClassName() |
IXholon |
getWorkbookBundle() |
java.lang.String |
getWorkbookFileName() |
java.lang.String |
getWorkbookId() |
java.lang.String |
getXhcName()
Get the name of the IXholonClass to which this Xholon instance is a member.
|
IXholonClass |
getXhcRoot()
Get the Inheritance Hierarchy XholonClass root.
|
java.lang.String |
getXholon2GuiClassName()
xholon2GuiClassName
|
java.lang.String |
getXholon2GuiParams()
xholon2GuiParams
|
java.lang.String |
getXhymAgent()
xhymAgent
|
java.lang.String |
getXincludePath() |
void |
image()
Display optional SVG (or other) image.
|
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.
|
IXholon2Gui |
invokeXholon2Gui(IXholon guiRoot,
java.lang.String guiFileName)
Invoke the optional Xholon2Gui GUI generator and launcher.
|
boolean |
isAllowConfigSrv()
Whether or not users are allowed to configure a Service or ExternalFormat writer,
just before the service or writer starts to do its things.
|
boolean |
isApplet()
Is this Xholon app running in an Applet environment?
|
boolean |
isAppSpecificAttribute(IXholon node,
java.lang.Class<IXholon> clazz,
java.lang.String attrName)
Determine if a clazz contains an application-specific non-port attribute.
|
boolean |
isAppSpecificClassFindable(java.lang.String implName)
Determine whether a specified class name could be instantiated using
Class.forName(implName) which is not available in GWT.
|
boolean |
isShouldStepView()
Get whether or not to call view.act() each timeStep.
|
boolean |
isUseAppOut()
Whether or not to use Application.out when exporting to external formats,
and in other situations where data might be instead written to a file.
|
boolean |
isUseGwt()
Is the app is running in a Google Web Toolkit (GWT) environment.
|
boolean |
loadWorkbook()
Load a XholonWorkbook from some source,
typically as a last child of root in a Chameleon app.
|
IXholon |
makeAppSpecificNode(java.lang.String implName)
Make an app-specific IXholon node.
|
void |
makeDefaultConsoles()
Clear the contents of the load-time console.
|
void |
makeSvgClient(java.lang.String svgStr)
Make an SvgClient node, which will handle displaying the SVG content.
|
void |
process()
Process time steps during the lifetime of the application.
|
void |
processOnce()
If you override this method in a subclass, you should either call super.process()
or call root.processSystemMessageQ() directly, to ensure that messages on the system
message queue are continuously being processed.
|
java.lang.String |
rcConfig(java.lang.String resourceName)
Retrieve resource content from RCConfig.
|
java.lang.String |
rcConfig(java.lang.String resourceName,
java.lang.Object resources)
Retrieve resource content from an app-specific resources class.
|
void |
readConfigFromFileXml(java.lang.String fileName)
Read configuration values from an XML file.
|
void |
readParameters(java.lang.String configFileName)
Read parameter values from the default configuration file, and
read parameter values from main configuration file/String for this specific application.
|
void |
resetNextId()
Set the next available id back to 0.
|
void |
resetNextXholonClassId()
Set the next available XholonClass id back to 0.
|
static void |
resetStaticVariables()
Reset various static variables that are part of Application or other system classes.
|
void |
resetViewers()
Reset all viewers to their default values.
|
void |
restoreIXholonAttributes(IXholon attrsArg)
Restore values of previously nulled IXholon attributes.
|
void |
runApp()
Run this instance of IApplication.
|
void |
saveSnapshot()
Save snapshot of xholon tree.
|
void |
setAllowConfigSrv(boolean allowConfigSrv)
Whether or not to allow users to configure a Service or ExternalFormat writer,
just before the service or writer starts to do its things.
|
void |
setApplet(boolean applet)
Set whether or not this Xholon app is running in an Applet environment.
|
static void |
setApplication(IApplication app,
IXholon root)
Set an instance of IApplication, where there may be multiple IApplication instances.
|
void |
setAppM(boolean appM) |
void |
setAppRoot(IXholon appRoot)
Set the application root.
|
void |
setAppSpecificAttribute(IXholon node,
java.lang.Class<IXholon> clazz,
java.lang.String attrName,
java.lang.Object attrVal)
Set the value of an application-specific non-port attribute.
|
boolean |
setAppSpecificObjectArrayVal(IXholon node,
java.lang.Class<IXholon> clazz,
java.lang.String attrName,
int index,
IXholon val)
Set the value of an Object attribute (port array), using a setter method.
|
boolean |
setAppSpecificObjectVal(IXholon node,
java.lang.Class<IXholon> clazz,
java.lang.String attrName,
IXholon val)
Set the value of an Object attribute, using a setter method.
|
void |
setAttributePostConfigAction(int attributePostConfigAction)
attributePostConfigAction
|
void |
setClassDetailsFile(java.lang.String classDetailsFile) |
void |
setCompositeStructureHierarchyFile(java.lang.String compositeStructureHierarchyFile) |
void |
setConfigFileName(java.lang.String configFileName)
Set the name of the config file.
|
void |
setControllerState(int controllerState)
Set state of the controller for this app.
|
void |
setControlRoot(IControl controlRoot) |
void |
setDataPlotterParams(java.lang.String dataPlotterParams)
dataPlotterParams
|
void |
setDebugM(boolean debugM) |
void |
setDefaultMechanism(IMechanism defaultMechanism)
Set the default Mechanism.
|
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 |
setHostPageBaseURL(java.lang.String hostPageBaseURL)
Cache the value of GWT.getHostPageBaseURL().
|
void |
setHtmlTitles()
Set the HTML head title, and the HTML body h2/h3 title.
|
void |
setImageFile(java.lang.String imageFile) |
void |
setInfoM(boolean infoM) |
void |
setInformationFile(java.lang.String informationFile) |
void |
setInheritanceHierarchyFile(java.lang.String inheritanceHierarchyFile) |
void |
setInitialControllerState(int initialControllerState)
initialControllerState
|
void |
setInteractionParams(java.lang.String interactionParams) |
void |
setIQueueImplName(java.lang.String iQueueImplName)
iQueueImplName
|
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 |
setJdbcParams(java.lang.String jdbcParams)
jdbcParams
|
void |
setJpaParams(java.lang.String jpaParams)
jpaParams
|
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 |
setMechRoot(IMechanism mechRoot)
Set the Mechanism root.
|
void |
setModelName(java.lang.String modelName)
modelName The modelName to set.
|
void |
setNextId(int nextId)
Set the next available id for assignment to an instance of Xholon.
|
void |
setNextXholonClassId(int nextXholonClassId)
Set the next available id that can be assigned to an instance of XholonClass.
|
boolean |
setParam(java.lang.String pName,
java.lang.String pValue)
Set the value of a parameter.
|
void |
setRandomNumberSeed(long randomNumberSeed)
randomNumberSeed
|
void |
setRoleName(java.lang.String roleName)
Set name of the role played by this Xholon within a specific context.
|
void |
setRoot(IXholon root)
Set the model root.
|
void |
setSaveSnapshots(boolean saveSnapshots) |
void |
setScriptParams(java.lang.String scriptParams)
Set script parameters, for use by ScriptService.
|
void |
setShouldStepView(boolean shouldStepView)
Set whether or not to call view.act() each timeStep.
|
void |
setSizeMessageQueue(int sizeMessageQueue)
Set the size of the message queue, and allocate a queue of that size.
|
void |
setSnapshotParams(java.lang.String snapshotParams) |
void |
setSrvRoot(IXholon srvRoot)
Set the XholonService root.
|
void |
setTimeStep(int timeStep)
Set the current time step of the executing application.
|
void |
setTimeStepInterval(int timeStepInterval)
Set time step interval defined for this application.
|
void |
setTreeNodeFactoryDynamic(boolean treeNodeFactoryDynamic)
treeNodeFactoryDynamic
|
void |
setUseAppOut(boolean useAppOut)
Whether or not to use Application.out when exporting to external formats,
and in other situations where data might be instead written to a file.
|
void |
setUseDataPlotter(java.lang.String useDataPlotter) |
void |
setUseGraphicalNetworkViewer(boolean useGraphicalNetworkViewer) |
void |
setUseGraphicalTreeViewer(boolean useGraphicalTreeViewer) |
void |
setUseGridViewer(boolean useGridViewer) |
void |
setUseGwt(boolean useGwt)
Set whether or not the app is running in a Google Web Toolkit (GWT) environment.
|
void |
setUseHistogramPlotter(java.lang.String useHistogramPlotter) |
void |
setUseInteractions(boolean useInteractions) |
void |
setUseTextTree(boolean useTextTree) |
void |
setUseVrml(boolean useVrml) |
void |
setUseXholon2Gui(boolean useXholon2Gui)
useXholon2Gui
|
void |
setView(IControl view)
Set the view root.
|
void |
setVrmlParams(java.lang.String vrmlParams) |
void |
setVrmlWriterClassName(java.lang.String vrmlWriterClassName) |
void |
setWorkbookBundle(IXholon workbookBundle) |
void |
setWorkbookFileName(java.lang.String workbookFileName) |
void |
setWorkbookId(java.lang.String workbookId) |
void |
setXhcRoot(IXholonClass xhcRoot)
Set the the Inheritance Hierarchy XholonClass root.
|
void |
setXholon2GuiClassName(java.lang.String xholon2GuiClassName)
xholon2GuiClassName
|
void |
setXholon2GuiParams(java.lang.String xholon2GuiParams)
xholon2GuiParams
|
void |
setXhymAgent(java.lang.String xhymAgent)
xhymAgent
|
void |
setXincludePath(java.lang.String xincludePath)
xincludePath
|
java.lang.String |
toString() |
void |
toXmlAttribute(IXholon2Xml xholon2xml,
IXmlWriter xmlWriter,
java.lang.String name,
java.lang.String value,
java.lang.Class clazz)
Write one attribute formatted as XML.
|
void |
toXmlAttributes(IXholon2Xml xholon2xml,
IXmlWriter xmlWriter)
Write a set of attributes formatted as XML.
|
void |
wbCallback(java.lang.String data)
This callback will be called by $wnd.xh.wb(data)
json.data.files."xholonWorkbook.xml".content
json["data"]["files"]["xholonWorkbook.xml"]["content"]
|
void |
wrapup()
Only invoke a viewer on wrapup if:
- the unconditional INVOKE_VIEWERS_ON_WRAPUP is set to true, or
- the viewer is non-graphical and writes to a file or stdout
|
act, actNr, appendChild, appendChild, appendChild, appendsOwnChildren, bindPorts, cleanup, compareTo, configure, configure, consoleLog, decVal, decVal, depth, doAction, equals, findFirstChildWithXhClass, findFirstChildWithXhClass, forwardMessage, forwardSyncMessage, getActionList, getAllPorts, getAnnotation, getAttributeNodeXh, getAttributeXh, getChildNodes, getFirstChild, getFirstSibling, getId, getInteractionsEnabled, getLastChild, getLastSibling, getLogger, getName, getNeighbors, getNextSibling, getNthChild, getNthSibling, getNumChildren, getNumLevels, getNumSiblings, getParentNode, getPort, getPort, getPreviousSibling, getRootNode, getSelfAndSiblings, getSelfAndSiblingsIndex, getSiblings, getUid, getVal_boolean, getVal_byte, getVal_char, getVal_double, getVal_float, getVal_int, getVal_long, getVal_Object, getVal_short, getVal_String, getVal, getXhc, getXhcId, getXholon2Xml, getXhType, getXml2Xholon, getXPath, handleNodeSelection, handleNodeSelection, hasAncestor, hasAnnotation, hasAttributeXh, hasChildNodes, hasChildOrSiblingNodes, hasNextSibling, hasParentNode, hasSiblingNodes, height, incVal, incVal, initialize, initStatics, inOrderPrint, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertFirstChild, isActiveObject, isAttributeHandler, isBound, isContainer, isExternal, isInternal, isLeaf, isPassiveObject, isRootNode, isUniqueSibling, isUniqueSiblingRoleName, performActivity, performActivity, performBooleanActivity, performBooleanActivity, performDoubleActivity, performGuard, performVoidActivity, postAct, postConfigure, postOrderPrint, postReconfigure, preAct, preConfigure, preOrderPrint, preReconfigure, print, println, processMessageQ, processReceivedMessage, processReceivedSyncMessage, processSystemMessageQ, reconfigure, registerMessageForwardee, remove, removeAttributeNodeXh, removeAttributeXh, removeChild, replaceNode, searchForReferencingNodes, searchForReferencingNodesRecurse, sendMessage, sendMessage, sendMessage, sendSyncMessage, sendSyncMessage, sendSyncMessage, sendSystemMessage, sendSystemMessage, setActionList, setAnnotation, setApp, setAttributeNodeXh, setAttributeVal, setAttributeXh, setFirstChild, setId, setName, setNextSibling, setParentChildLinks, setParentNode, setParentSiblingLinks, setPort, setPort, setPorts, setUid, setUri, setVal_boolean, setVal_byte, setVal_char, setVal_double, setVal_float, setVal_int, setVal_long, setVal_Object, setVal_short, setVal_String, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setXhc, showAnnotation, swapNode, terminate, toXml, toXmlText, treeSize, visit
getClass, hashCode, notify, notifyAll, wait, wait, wait
act, actNr, appendChild, appendChild, appendChild, appendsOwnChildren, bindPorts, cleanup, configure, configure, consoleLog, decVal, decVal, depth, doAction, findFirstChildWithXhClass, findFirstChildWithXhClass, forwardMessage, forwardSyncMessage, getActionList, getAllPorts, getAnnotation, getAttributeNodeXh, getAttributeXh, getChildNodes, getFirstChild, getFirstSibling, getId, getLastChild, getLastSibling, getName, getNeighbors, getNextSibling, getNthChild, getNthSibling, getNumChildren, getNumLevels, getNumSiblings, getParentNode, getPort, getPort, getPreviousSibling, getRootNode, getSelfAndSiblings, getSelfAndSiblingsIndex, getSiblings, getUid, getVal_boolean, getVal_byte, getVal_char, getVal_double, getVal_float, getVal_int, getVal_long, getVal_Object, getVal_short, getVal_String, getVal, getXhc, getXhcId, getXholon2Xml, getXhType, getXml2Xholon, handleNodeSelection, handleNodeSelection, hasAncestor, hasAnnotation, hasAttributeXh, hasChildNodes, hasChildOrSiblingNodes, hasNextSibling, hasParentNode, hasSiblingNodes, height, incVal, incVal, initialize, initStatics, inOrderPrint, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertFirstChild, isActiveObject, isAttributeHandler, isBound, isContainer, isExternal, isInternal, isLeaf, isPassiveObject, isRootNode, isUniqueSibling, isUniqueSiblingRoleName, performActivity, performActivity, performBooleanActivity, performBooleanActivity, performDoubleActivity, performGuard, performVoidActivity, postAct, postConfigure, postOrderPrint, postReconfigure, preAct, preConfigure, preOrderPrint, preReconfigure, print, println, processMessageQ, processReceivedMessage, processReceivedSyncMessage, processSystemMessageQ, reconfigure, registerMessageForwardee, remove, removeAttributeNodeXh, removeAttributeXh, removeChild, replaceNode, searchForReferencingNodes, sendMessage, sendMessage, sendMessage, sendSyncMessage, sendSyncMessage, sendSyncMessage, sendSystemMessage, sendSystemMessage, setActionList, setAnnotation, setApp, setAttributeNodeXh, setAttributeVal, setAttributeXh, setFirstChild, setId, setName, setNextSibling, setParentChildLinks, setParentNode, setParentSiblingLinks, setPort, setPort, setPorts, setUid, setUri, setVal_boolean, setVal_byte, setVal_char, setVal_double, setVal_float, setVal_int, setVal_long, setVal_Object, setVal_short, setVal_String, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setXhc, showAnnotation, swapNode, terminate, toXml, toXmlText, treeSize, visit
public void setClassDetailsFile(java.lang.String classDetailsFile)
setClassDetailsFile
in interface IApplication
classDetailsFile
- The classDetailsFile to set.public void setCompositeStructureHierarchyFile(java.lang.String compositeStructureHierarchyFile)
setCompositeStructureHierarchyFile
in interface IApplication
compositeStructureHierarchyFile
- The compositeStructureHierarchyFile to set.public void setInheritanceHierarchyFile(java.lang.String inheritanceHierarchyFile)
setInheritanceHierarchyFile
in interface IApplication
inheritanceHierarchyFile
- The inheritanceHierarchyFile to set.public void setInformationFile(java.lang.String informationFile)
setInformationFile
in interface IApplication
informationFile
- The informationFile to set.public void setImageFile(java.lang.String imageFile)
setImageFile
in interface IApplication
imageFile
- The imageFile to set.public void setMaxProcessLoops(int maxProcessLoops)
setMaxProcessLoops
in interface IApplication
maxProcessLoops
- The maxProcessLoops to set.public void setTimeStepInterval(int timeStepInterval)
IApplication
setTimeStepInterval
in interface IApplication
timeStepInterval
- The time step interval in ms.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 setDebugM(boolean debugM)
debugM
- The debugM to set.public void setUseTextTree(boolean useTextTree)
useTextTree
- The useTextTree to set.public void setShouldStepView(boolean shouldStepView)
IApplication
setShouldStepView
in interface IApplication
shouldStepView
- the shouldStepView to setpublic 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)
setUseGridViewer
in interface IApplication
useGridViewer
- The useGridViewer to set.public void setGridPanelClassName(java.lang.String gridPanelClassName)
setGridPanelClassName
in interface IApplication
gridPanelClassName
- The name of the GridViewer Panel Java class.public void setGridViewerParams(java.lang.String gridViewerParams)
setGridViewerParams
in interface IApplication
gridViewerParams
- GridViewer parameters.public void setUseDataPlotter(java.lang.String useDataPlotter)
setUseDataPlotter
in interface IApplication
useDataPlotter
- The useDataPlotter to set.public void setDataPlotterParams(java.lang.String dataPlotterParams)
IApplication
setDataPlotterParams
in interface IApplication
public void setUseHistogramPlotter(java.lang.String useHistogramPlotter)
setUseHistogramPlotter
in interface IApplication
useHistogramPlotter
- The useHistogramPlotter to set.public void setHistogramPlotterParams(java.lang.String histogramPlotterParams)
public void setUseInteractions(boolean useInteractions)
setUseInteractions
in interface IApplication
useInteractions
- The useInteractions to set.public void setInteractionParams(java.lang.String interactionParams)
setInteractionParams
in interface IApplication
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)
setSaveSnapshots
in interface IApplication
saveSnapshots
- The saveSnapshots to set.public void setSnapshotParams(java.lang.String snapshotParams)
snapshotParams
- public void setScriptParams(java.lang.String scriptParams)
IApplication
setScriptParams
in interface IApplication
scriptParams
- public void setModelName(java.lang.String modelName)
public void setSizeMessageQueue(int sizeMessageQueue)
sizeMessageQueue
- The size of the queue.public void setTreeNodeFactoryDynamic(boolean treeNodeFactoryDynamic)
public void setRandomNumberSeed(long randomNumberSeed)
public void setMaxPorts(int maxPorts)
public void setXincludePath(java.lang.String xincludePath)
setXincludePath
in interface IApplication
public void setXhymAgent(java.lang.String xhymAgent)
public void setUseXholon2Gui(boolean useXholon2Gui)
public void setXholon2GuiParams(java.lang.String xholon2GuiParams)
public void setXholon2GuiClassName(java.lang.String xholon2GuiClassName)
public void setJdbcParams(java.lang.String jdbcParams)
public void setJpaParams(java.lang.String jpaParams)
public void setIQueueImplName(java.lang.String iQueueImplName)
public void setConfigFileName(java.lang.String configFileName)
IApplication
setConfigFileName
in interface IApplication
public void setInitialControllerState(int initialControllerState)
public void setAttributePostConfigAction(int attributePostConfigAction)
public java.lang.String getClassDetailsFile()
getClassDetailsFile
in interface IApplication
public java.lang.String getCompositeStructureHierarchyFile()
getCompositeStructureHierarchyFile
in interface IApplication
public java.lang.String getInheritanceHierarchyFile()
getInheritanceHierarchyFile
in interface IApplication
public java.lang.String getInformationFile()
getInformationFile
in interface IApplication
public java.lang.String getImageFile()
getImageFile
in interface IApplication
public int getMaxProcessLoops()
getMaxProcessLoops
in interface IApplication
public int getTimeStepInterval()
IApplication
getTimeStepInterval
in interface IApplication
public int getMaxStateMachineEntities()
getMaxStateMachineEntities
in interface IApplication
public int getMaxActivities()
getMaxActivities
in interface IApplication
public int getMaxXholonClasses()
getMaxXholonClasses
in interface IApplication
public int getMaxXholons()
getMaxXholons
in interface IApplication
public boolean getAppM()
public boolean getInfoM()
public boolean getErrorM()
public boolean getDebugM()
public boolean getUseTextTree()
public boolean isShouldStepView()
IApplication
isShouldStepView
in interface IApplication
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()
getUseDataPlotter
in interface IApplication
public boolean getUseJFreeChart()
getUseJFreeChart
in interface IApplication
public boolean getUseGnuplot()
getUseGnuplot
in interface IApplication
public boolean getUseJdbc()
getUseJdbc
in interface IApplication
public boolean getUseJpa()
getUseJpa
in interface IApplication
public boolean getUseGoogle()
getUseGoogle
in interface IApplication
public boolean getUseGoogle2()
getUseGoogle2
in interface IApplication
public boolean getUseC3()
getUseC3
in interface IApplication
public boolean getUseNVD3()
getUseNVD3
in interface IApplication
public java.lang.String getDataPlotterParams()
getDataPlotterParams
in interface IApplication
public boolean getUseHistogramPlotter()
getUseHistogramPlotter
in interface IApplication
public boolean getUseJFreeChart_Hist()
getUseJFreeChart_Hist
in interface IApplication
public boolean getUseGnuplot_Hist()
getUseGnuplot_Hist
in interface IApplication
public boolean getUseGoogle2_Hist()
public boolean getUseD3_Hist()
public java.lang.String getHistogramPlotterParams()
getHistogramPlotterParams
in interface IApplication
public boolean getUseInteractions()
getUseInteractions
in interface IApplication
public java.lang.String getInteractionParams()
getInteractionParams
in interface IApplication
public boolean getUseVrml()
public java.lang.String getVrmlWriterClassName()
public java.lang.String getVrmlParams()
public java.lang.String getJavaClassName()
getJavaClassName
in interface IApplication
public java.lang.String getJavaXhClassName()
IApplication
getJavaXhClassName
in interface IApplication
public java.lang.String getJavaXhClassClassName()
IApplication
getJavaXhClassClassName
in interface IApplication
public java.lang.String getJavaActivityClassName()
IApplication
getJavaActivityClassName
in interface IApplication
public boolean getSaveSnapshots()
getSaveSnapshots
in interface IApplication
public java.lang.String getSnapshotParams()
public java.lang.String getScriptParams()
IApplication
getScriptParams
in interface IApplication
public java.lang.String getModelName()
IApplication
getModelName
in interface IApplication
public int getSizeMessageQueue()
public boolean getTreeNodeFactoryDynamic()
IApplication
getTreeNodeFactoryDynamic
in interface IApplication
public long getRandomNumberSeed()
public int getMaxPorts()
getMaxPorts
in interface IApplication
public java.lang.String getXincludePath()
getXincludePath
in interface IApplication
public java.lang.String getXhymAgent()
public boolean getUseXholon2Gui()
public java.lang.String getXholon2GuiParams()
public java.lang.String getXholon2GuiClassName()
public java.lang.String getJdbcParams()
public java.lang.String getJpaParams()
public java.lang.String getIQueueImplName()
getIQueueImplName
in interface IApplication
getIQueueImplName
in class Xholon
public java.lang.String getConfigFileName()
IApplication
getConfigFileName
in interface IApplication
public int getInitialControllerState()
public int getAttributePostConfigAction()
getAttributePostConfigAction
in interface IApplication
public ITreeNodeFactory getFactory()
Xholon
getFactory
in interface IApplication
getFactory
in class Xholon
public IQueue getMsgQ()
Xholon
getMsgQ
in interface IApplication
getMsgQ
in class Xholon
public IQueue getSystemMsgQ()
Xholon
getSystemMsgQ
in interface IApplication
getSystemMsgQ
in class Xholon
public IInteraction getInteraction()
Xholon
getInteraction
in interface IApplication
getInteraction
in class Xholon
public java.lang.String getConfigPathName()
public java.lang.String getConfigAppName()
public java.lang.String getName()
public void setRoleName(java.lang.String roleName)
IXholon
setRoleName
in interface IXholon
setRoleName
in class Xholon
roleName
- An optional name that identifies the role.public java.lang.String getRoleName()
IXholon
getRoleName
in interface IXholon
getRoleName
in class Xholon
public java.lang.String getXhcName()
IXholon
getXhcName
in interface IXholon
getXhcName
in class Xholon
public java.lang.String getUri()
IXholon
public static IApplication getApplication(IXholon xhNode)
xhNode
- An instance of IXholon.public static IApplication getApplication(java.lang.String appName)
appName
- The application name. This is the model name in the _xhn.xml file.public static IApplication getLastInsertedApplication()
public static IApplication getApplication()
public static IApplication[] getApplications()
public static java.lang.String[] getApplicationNames()
public static int getNumApplications()
public static void setApplication(IApplication app, IXholon root)
app
- An instance of IApplication.root
- The root node in a Xholon composite structure hierarchy.public IApplication getApplicationOther(IXholon xhNode)
IApplication
getApplicationOther
in interface IApplication
xhNode
- An instance of IXholon.public IApplication getApplicationOther(java.lang.String appName)
IApplication
getApplicationOther
in interface IApplication
appName
- The application name. This is the model name in the _xhn.xml file.public IApplication getApp()
IXholon
public IXholon getService(java.lang.String serviceName)
IXholon
getService
in interface IXholon
getService
in class Xholon
serviceName
- The name of a service.
This is the name used in XholonService.xml, which is the IXholonClass name.public IInheritanceHierarchy getInherHier()
IApplication
getInherHier
in interface IApplication
public static void resetStaticVariables()
public int getNextId()
Xholon
getNextId
in interface IApplication
public void setNextId(int nextId)
IApplication
setNextId
in interface IApplication
nextId
- A new next id.public void resetNextId()
Xholon
resetNextId
in interface IApplication
public int getNextXholonClassId()
IApplication
getNextXholonClassId
in interface IApplication
public void setNextXholonClassId(int nextXholonClassId)
IApplication
setNextXholonClassId
in interface IApplication
nextXholonClassId
- A unique id.public void resetNextXholonClassId()
IApplication
resetNextXholonClassId
in interface IApplication
public void initGui(java.lang.Object gui)
IApplication
initGui
in interface IApplication
gui
- The JTree gui.public void initControl()
IApplication
initControl
in interface IApplication
public void setControllerState(int controllerState)
IApplication
setControllerState
in interface IApplication
controllerState
- The current controller state.public int getControllerState()
IApplication
getControllerState
in interface IApplication
public java.lang.String getControllerStateName()
IApplication
getControllerStateName
in interface IApplication
public void setTimeStep(int timeStep)
setTimeStep
in interface IApplication
ts
- The current time step.public int getTimeStep()
getTimeStep
in interface IApplication
public IXholonClass getClassNode(java.lang.String cName)
IXholon
getClassNode
in interface IXholon
getClassNode
in class Xholon
cName
- Name of the XholonClass (ex: "HelloWorld").public IXholonClass getClassNode(int id)
IXholon
getClassNode
in interface IXholon
getClassNode
in class Xholon
public void setRoot(IXholon root)
IApplication
setRoot
in interface IApplication
root
- The model root.public IXholon getRoot()
IApplication
getRoot
in interface IApplication
public IControl getView()
IApplication
getView
in interface IApplication
public void setView(IControl view)
IApplication
setView
in interface IApplication
view
- The view root.public void setAppRoot(IXholon appRoot)
IApplication
setAppRoot
in interface IApplication
appRoot
- The application root.public IXholon getAppRoot()
IApplication
getAppRoot
in interface IApplication
public boolean isApplet()
IApplication
isApplet
in interface IApplication
public void setApplet(boolean applet)
IApplication
setApplet
in interface IApplication
applet
- true or falsepublic void setXhcRoot(IXholonClass xhcRoot)
IApplication
setXhcRoot
in interface IApplication
xhcRoot
- The XholonClass root.public IXholonClass getXhcRoot()
IApplication
getXhcRoot
in interface IApplication
public void setSrvRoot(IXholon srvRoot)
IApplication
setSrvRoot
in interface IApplication
srvRoot
- The XholonService root.public IXholon getSrvRoot()
IApplication
getSrvRoot
in interface IApplication
public void setControlRoot(IControl controlRoot)
public IControl getControlRoot()
IApplication
getControlRoot
in interface IApplication
public void setMechRoot(IMechanism mechRoot)
IApplication
setMechRoot
in interface IApplication
mechRoot
- The Mechanism root.public IMechanism getMechRoot()
IApplication
getMechRoot
in interface IApplication
public void setDefaultMechanism(IMechanism defaultMechanism)
IApplication
setDefaultMechanism
in interface IApplication
defaultMechanism
- The default Mechanism.public IMechanism getDefaultMechanism()
IApplication
getDefaultMechanism
in interface IApplication
public void initialize(java.lang.String configFileName) throws XholonConfigurationException
IApplication
initialize
in interface IApplication
configFileName
- Name of the configuration file.XholonConfigurationException
public void readParameters(java.lang.String configFileName) throws XholonConfigurationException
IApplication
readParameters
in interface IApplication
configFileName
- Name of the configuration file.XholonConfigurationException
public void setHtmlTitles()
public java.lang.String rcConfig(java.lang.String resourceName)
rcConfig
in interface IApplication
The
- name of the resource in RCConfig.public java.lang.String rcConfig(java.lang.String resourceName, java.lang.Object resources)
rcConfig
in interface IApplication
The
- name of the resource in the resources class.An
- instance of the resources class.public int createGridViewer(int vIx)
IApplication
createGridViewer
in interface IApplication
vIx
- An index into the GridViewerDetails gridViewer Vector.
If xIx = -1, then take the last gridViewer in the Vector.public GridViewerDetails getGridViewer(int vIx)
IApplication
getGridViewer
in interface IApplication
vIx
- The index of the grid viewer.
If there is only one grid viewer, it will have index 0.public void process()
IApplication
process
in interface IApplication
public void processOnce()
IApplication.process()
public void wrapup()
wrapup
in interface IApplication
IApplication.wrapup()
public void readConfigFromFileXml(java.lang.String fileName) throws XholonConfigurationException
IApplication
readConfigFromFileXml
in interface IApplication
fileName
- Name of the configuration file. ex: Config_HelloWorld.xmlXholonConfigurationException
public boolean setParam(java.lang.String pName, java.lang.String pValue)
IApplication
setParam
in interface IApplication
pName
- Parameter name.pValue
- Parameter value.public java.lang.String getParam(java.lang.String pName)
IApplication
getParam
in interface IApplication
pName
- Parameter name.public void resetViewers()
IApplication
resetViewers
in interface IApplication
public void initViewers()
IApplication
initViewers
in interface IApplication
public void createInteractions()
IApplication
createInteractions
in interface IApplication
public void createChart(IXholon chartRoot)
IApplication
createChart
in interface IApplication
chartRoot
- The root of the subtree that will provide values for the chart.
If this value is null, then the model root will be used.public void saveSnapshot()
saveSnapshot
in interface IApplication
public void about()
IApplication
about
in interface IApplication
public java.lang.String getAbout()
IApplication
getAbout
in interface IApplication
public void information()
IApplication
information
in interface IApplication
public void image()
IApplication
image
in interface IApplication
IApplication.image()
public void makeSvgClient(java.lang.String svgStr)
IApplication
makeSvgClient
in interface IApplication
svgStr
- SVG contentpublic IViewer invokeGraphicalTreeViewer(IXholon xhStart, java.lang.String graphicalNetworkViewerParams)
IApplication
invokeGraphicalTreeViewer
in interface IApplication
xhStart
- 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 IApplication
xhStart
- The start node whose contents will be graphed.graphicalNetworkViewerParams
- A set of comma-delimited parameters.public IViewer invokeGraphicalNetworkViewer()
IApplication
invokeGraphicalNetworkViewer
in interface IApplication
public IViewer invokeDataPlotter()
IApplication
invokeDataPlotter
in interface IApplication
public IViewer invokeHistogramPlotter()
IApplication
invokeHistogramPlotter
in interface IApplication
public IViewer invokeInteraction()
IApplication
invokeInteraction
in interface IApplication
public IXholon2Gui invokeXholon2Gui(IXholon guiRoot, java.lang.String guiFileName)
IApplication
invokeXholon2Gui
in interface IApplication
public void runApp()
IApplication
runApp
in interface IApplication
public void clearConsole()
public void makeDefaultConsoles()
public static void appMain(java.lang.String[] args, java.lang.String className, java.lang.String defaultConfigFileName)
args
- Arguments passed in from the command line.
ex: -configFileName /myFolder/MyApp_xhn.xml -appMultiThreaded false
className
- Name of the Application subclass.
ex: "org.primordion.xholon.tutorials.AppHelloWorld"
defaultConfigFileName
- Name and path of a default _xhn.xml configuration file.
ex: "./config/HelloWorld/HelloWorld_xhn.xml"
public boolean isUseAppOut()
IApplication
isUseAppOut
in interface IApplication
public void setUseAppOut(boolean useAppOut)
IApplication
setUseAppOut
in interface IApplication
useAppOut
- true or falsepublic boolean isUseGwt()
IApplication
isUseGwt
in interface IApplication
public void setUseGwt(boolean useGwt)
IApplication
setUseGwt
in interface IApplication
public void setHostPageBaseURL(java.lang.String hostPageBaseURL)
IApplication
setHostPageBaseURL
in interface IApplication
public java.lang.String getHostPageBaseURL()
IApplication
getHostPageBaseURL
in interface IApplication
public IXholon makeAppSpecificNode(java.lang.String implName)
IApplication
IXholon node = this.getApp().makeAppSpecificNode("org.primordion.user.app.abc.MyAbc");
makeAppSpecificNode
in interface IApplication
implName
- The full name of an IXholon Java class (ex: "org.primordion.user.app.abc.MyAbc").public java.lang.Class<IXholon> findAppSpecificClass(java.lang.String className)
IApplication
findAppSpecificClass
in interface IApplication
className
- (ex: "org.primordion.user.app.helloworld.XhHelloWorld")public int findAppSpecificConstantValue(java.lang.Class<?> clazz, java.lang.String constName)
IApplication
findAppSpecificConstantValue
in interface IApplication
clazz
- The class that contains the constant.constName
- (ex: "P_SM_SUB2").public IXholon getAppSpecificObjectVal(IXholon node, java.lang.Class<IXholon> clazz, java.lang.String attrName)
IApplication
getAppSpecificObjectVal
in interface IApplication
node
- An IXholon instance that has a port.clazz
- The node's Java class.attrName
- The name of an IXholon port.public boolean setAppSpecificObjectVal(IXholon node, java.lang.Class<IXholon> clazz, java.lang.String attrName, IXholon val)
IApplication
setAppSpecificObjectVal
in interface IApplication
node
- An IXholon instance that has a port.clazz
- The node's Java class.attrName
- The name of an IXholon port.val
- The IXholon that this port references.public java.lang.String getAppSpecificObjectValNames(IXholon node, java.lang.Class<IXholon> clazz)
IApplication
getAppSpecificObjectValNames
in interface IApplication
node
- An IXholon instance that may have ports.clazz
- The node's Java class.public java.util.List getAppSpecificObjectVals(IXholon node, java.lang.Class<IXholon> clazz)
IApplication
getAppSpecificObjectVals
in interface IApplication
node
- An IXholon instance that may have ports.clazz
- The node's Java class.public boolean isAppSpecificClassFindable(java.lang.String implName)
IApplication
isAppSpecificClassFindable
in interface IApplication
implName
- (ex: "org.primordion.user.app.climatechange.carboncycle03.Photosynthesis")public java.lang.Object getAppSpecificAttribute(IXholon node, java.lang.Class<IXholon> clazz, java.lang.String attrName)
IApplication
getAppSpecificAttribute
in interface IApplication
node
- The instance of clazz that contains the attribute.clazz
- The node's Java class, which must follow the Java bean getter/setter convention.
The class is required so this method can optionally recursively call itself
to search a chain of superclasses for AttrName.
The recursion will only find superclasses that are in the same package as the implementation class.attrName
- The name of the attribute (ex: "state", to be accessed using getState()).public void setAppSpecificAttribute(IXholon node, java.lang.Class<IXholon> clazz, java.lang.String attrName, java.lang.Object attrVal)
IApplication
setAppSpecificAttribute
in interface IApplication
node
- The instance of clazz that contains the attribute.clazz
- The node's Java class, which must follow the Java bean getter/setter convention.
The class is required so this method can optionally recursively call itself
to search a chain of superclasses for attrName.
The recursion will only find superclasses that are in the same package as the implementation class.attrName
- The name of the attribute (ex: "state", to be accessed using setState(attrVal)).attrVal
- The intended new value of the attribute (or null).
If the attribute is a Java primitive (boolean byte char float int long short),
it will be autoboxed as the corresponding Object type
(Boolean Byte Character Float Integer Long Short).public java.lang.Object[][] getAppSpecificAttributes(IXholon node, java.lang.Class<IXholon> clazz, boolean returnAll)
IApplication
getAppSpecificAttributes
in interface IApplication
node
- The instance of clazz that contains the attribute.clazz
- The node's Java class, which must follow the Java bean getter/setter convention.
The class is required so this method can optionally recursively call itself
to search a chain of superclasses for attributes.
The recursion will only find superclasses that are in the same package as the implementation class.returnAll
- Whether or not to return all attributes, rather than only those of immediate class.
This determines whether or not this method will search recursively for attributes.
NO @param returnStatics Whether or not attributes returned by static methods should be returned.
NO @param returnIfUnPaired Whether or not unpaired attributes will be returned.
NO An unpaired attribute has a getter (getAbc() isAbc()) but no matching setter (setAbc(...)).IReflection.getAppSpecificAttributes
public boolean isAppSpecificAttribute(IXholon node, java.lang.Class<IXholon> clazz, java.lang.String attrName)
IApplication
isAppSpecificAttribute
in interface IApplication
node
- The instance of clazz that contains the attribute.clazz
- The node's Java class, which must follow the Java bean getter/setter convention.
The class is required so this method can optionally recursively call itself
to search a chain of superclasses for attrName.
The recursion will only find superclasses that are in the same package as the implementation class.attrName
- The name of the attribute (ex: "state", to be accessed using setState(attrVal)).public boolean setAppSpecificObjectArrayVal(IXholon node, java.lang.Class<IXholon> clazz, java.lang.String attrName, int index, IXholon val)
IApplication
setAppSpecificObjectArrayVal
in interface IApplication
node
- An IXholon instance that has a port array.clazz
- The node's Java class.attrName
- The name of an IXholon port array.index
- An array index, which must be less than the size of the port array.val
- The IXholon that this port references.public java.lang.Object findGwtClientBundle()
IApplication
findGwtClientBundle
in interface IApplication
public java.lang.String getWorkbookId()
getWorkbookId
in interface IApplication
public void setWorkbookId(java.lang.String workbookId)
setWorkbookId
in interface IApplication
public java.lang.String getWorkbookFileName()
getWorkbookFileName
in interface IApplication
public void setWorkbookFileName(java.lang.String workbookFileName)
setWorkbookFileName
in interface IApplication
public IXholon getWorkbookBundle()
getWorkbookBundle
in interface IApplication
public void setWorkbookBundle(IXholon workbookBundle)
setWorkbookBundle
in interface IApplication
public boolean loadWorkbook()
loadWorkbook
in interface IApplication
public void wbCallback(java.lang.String data)
wbCallback
in interface IApplication
data
- The JSON data returned by github,
either a XholonWorkbook or some error string.public boolean isAllowConfigSrv()
IApplication
isAllowConfigSrv
in interface IApplication
public void setAllowConfigSrv(boolean allowConfigSrv)
IApplication
setAllowConfigSrv
in interface IApplication
allowConfigSrv
- true or falsepublic IGraphicalTreeViewer getTreeViewerJung()
getTreeViewerJung
in interface IApplication
public IGraphicalNetworkViewer getNetworkViewerJung()
getNetworkViewerJung
in interface IApplication
public IChartViewer getChartViewer()
getChartViewer
in interface IApplication
public IHistogramViewer getHistogramViewer()
getHistogramViewer
in interface IApplication
public IXholon cacheIXholonAttributes()
public void restoreIXholonAttributes(IXholon attrsArg)
attrs
- public void toXmlAttributes(IXholon2Xml xholon2xml, IXmlWriter xmlWriter)
IXholon
toXmlAttributes
in interface IXholon
toXmlAttributes
in class Xholon
xmlWriter
- The XML writer.public void toXmlAttribute(IXholon2Xml xholon2xml, IXmlWriter xmlWriter, java.lang.String name, java.lang.String value, java.lang.Class clazz)
IXholon
toXmlAttribute
in interface IXholon
toXmlAttribute
in class Xholon
xmlWriter
- The XML writer.name
- Name of the attribute.value
- Value of the attribute.