public class SystemMechSpecific extends Application
Modifier and Type | Field and Description |
---|---|
static SystemMechSpecific |
instance |
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 |
---|
SystemMechSpecific() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
about, appMain, cacheIXholonAttributes, clearConsole, createChart, createGridViewer, createInteractions, findAppSpecificClass, findAppSpecificConstantValue, findGwtClientBundle, getAbout, getApp, getApplication, getApplication, getApplication, getApplicationNames, getApplicationOther, getApplicationOther, getApplications, getAppM, getAppRoot, getAppSpecificObjectVals, getAttributePostConfigAction, getChartViewer, getClassDetailsFile, getClassNode, getClassNode, getCompositeStructureHierarchyFile, getConfigAppName, getConfigFileName, getConfigPathName, getControllerState, getControllerStateName, getControlRoot, getDataPlotterParams, getDebugM, getDefaultMechanism, getErrorM, getFactory, getGraphicalNetworkViewerClassName, getGraphicalNetworkViewerParams, getGraphicalTreeViewerParams, getGridPanelClassName, getGridViewer, getHistogramPlotterParams, getHistogramViewer, getHostPageBaseURL, getImageFile, getInfoM, getInformationFile, getInherHier, getInheritanceHierarchyFile, getInitialControllerState, getInteraction, getInteractionParams, getIQueueImplName, getJavaActivityClassName, getJavaClassName, getJavaXhClassClassName, getJavaXhClassName, getJdbcParams, getJpaParams, getLastInsertedApplication, getMaxActivities, getMaxPorts, getMaxProcessLoops, getMaxStateMachineEntities, getMaxXholonClasses, getMaxXholons, getMechRoot, getModelName, getMsgQ, getName, getNetworkViewerJung, getNextId, getNextXholonClassId, getNumApplications, getParam, getRandomNumberSeed, getRoleName, getRoot, getSaveSnapshots, getScriptParams, getService, getSizeMessageQueue, getSnapshotParams, getSrvRoot, getSystemMsgQ, getTimeStep, getTimeStepInterval, getTreeNodeFactoryDynamic, getTreeViewerJung, getUri, getUseC3, getUseD3_Hist, getUseDataPlotter, getUseGnuplot_Hist, getUseGnuplot, getUseGoogle, getUseGoogle2_Hist, getUseGoogle2, getUseGraphicalNetworkViewer, getUseGraphicalTreeViewer, getUseGridViewer, getUseHistogramPlotter, getUseInteractions, getUseJdbc, getUseJFreeChart_Hist, getUseJFreeChart, getUseJpa, getUseNVD3, getUseTextTree, getUseVrml, getUseXholon2Gui, getView, getVrmlParams, getVrmlWriterClassName, getWorkbookBundle, getWorkbookFileName, getWorkbookId, getXhcName, getXhcRoot, getXholon2GuiClassName, getXholon2GuiParams, getXhymAgent, getXincludePath, image, information, initControl, initGui, initialize, initViewers, invokeDataPlotter, invokeGraphicalNetworkViewer, invokeGraphicalNetworkViewer, invokeGraphicalTreeViewer, invokeGraphicalTreeViewer, invokeHistogramPlotter, invokeInteraction, invokeXholon2Gui, isAllowConfigSrv, isApplet, isAppSpecificAttribute, isAppSpecificClassFindable, isShouldStepView, isUseAppOut, isUseGwt, loadWorkbook, makeAppSpecificNode, makeDefaultConsoles, makeSvgClient, process, processOnce, rcConfig, rcConfig, readConfigFromFileXml, readParameters, resetNextId, resetNextXholonClassId, resetStaticVariables, resetViewers, restoreIXholonAttributes, runApp, saveSnapshot, setAllowConfigSrv, setApplet, setApplication, setAppM, setAppRoot, setAttributePostConfigAction, setClassDetailsFile, setCompositeStructureHierarchyFile, setConfigFileName, setControllerState, setControlRoot, setDataPlotterParams, setDebugM, setDefaultMechanism, setErrorM, setGraphicalNetworkViewerClassName, setGraphicalNetworkViewerParams, setGraphicalTreeViewerParams, setGridPanelClassName, setGridViewerParams, setHistogramPlotterParams, setHostPageBaseURL, setHtmlTitles, setImageFile, setInfoM, setInformationFile, setInheritanceHierarchyFile, setInitialControllerState, setInteractionParams, setIQueueImplName, setJavaActivityClassName, setJavaClassName, setJavaXhClassClassName, setJavaXhClassName, setJdbcParams, setJpaParams, setMaxActivities, setMaxPorts, setMaxProcessLoops, setMaxStateMachineEntities, setMaxXholonClasses, setMaxXholons, setMechRoot, setModelName, setNextId, setNextXholonClassId, setParam, setRandomNumberSeed, setRoleName, setRoot, setSaveSnapshots, setScriptParams, setShouldStepView, setSizeMessageQueue, setSnapshotParams, setSrvRoot, setTimeStep, setTimeStepInterval, setTreeNodeFactoryDynamic, setUseAppOut, setUseDataPlotter, setUseGraphicalNetworkViewer, setUseGraphicalTreeViewer, setUseGridViewer, setUseGwt, setUseHistogramPlotter, setUseInteractions, setUseTextTree, setUseVrml, setUseXholon2Gui, setView, setVrmlParams, setVrmlWriterClassName, setWorkbookBundle, setWorkbookFileName, setWorkbookId, setXhcRoot, setXholon2GuiClassName, setXholon2GuiParams, setXhymAgent, setXincludePath, toString, toXmlAttribute, toXmlAttributes, wbCallback, wrapup
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 static final SystemMechSpecific instance
public IXholon getAppSpecificObjectVal(IXholon node, java.lang.Class<IXholon> clazz, java.lang.String attrName)
IApplication
getAppSpecificObjectVal
in interface IApplication
getAppSpecificObjectVal
in class Application
node
- An IXholon instance that has a port.clazz
- The node's Java class.attrName
- The name of an IXholon port.public java.lang.String getAppSpecificObjectValNames(IXholon node, java.lang.Class<IXholon> clazz)
IApplication
getAppSpecificObjectValNames
in interface IApplication
getAppSpecificObjectValNames
in class Application
node
- An IXholon instance that may have ports.clazz
- The node's Java class.public boolean setAppSpecificObjectVal(IXholon node, java.lang.Class<IXholon> clazz, java.lang.String attrName, IXholon val)
IApplication
setAppSpecificObjectVal
in interface IApplication
setAppSpecificObjectVal
in class Application
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.Object getAppSpecificAttribute(IXholon node, java.lang.Class<IXholon> clazz, java.lang.String attrName)
IApplication
getAppSpecificAttribute
in interface IApplication
getAppSpecificAttribute
in class Application
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
setAppSpecificAttribute
in class Application
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
getAppSpecificAttributes
in class Application
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 setAppSpecificObjectArrayVal(IXholon node, java.lang.Class<IXholon> clazz, java.lang.String attrName, int index, IXholon val)
IApplication
setAppSpecificObjectArrayVal
in interface IApplication
setAppSpecificObjectArrayVal
in class Application
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.