public class StateInstance extends Object implements StateRunnable, ILEMSStateInstance
| Constructor and Description |
|---|
StateInstance() |
StateInstance(StateType uc) |
public StateInstance()
public StateInstance(StateType uc)
public String getID()
getID in interface StateRunnablepublic String getInfo()
public void setParent(StateRunnable p)
setParent in interface StateRunnablepublic StateRunnable getParent()
getParent in interface StateRunnablepublic boolean isBuilt()
isBuilt in interface StateRunnablepublic void setList(String s)
setList in interface StateRunnablepublic boolean isList()
public double getCurrentTime()
public void initialize(StateRunnable parent) throws RuntimeError, ContentError
initialize in interface StateRunnableRuntimeErrorContentErrorpublic void evaluate(StateRunnable parent) throws RuntimeError, ContentError
evaluate in interface StateRunnableRuntimeErrorContentErrorpublic void advance(StateRunnable parent, double t, double dt) throws RuntimeError, ContentError
advance in interface StateRunnableRuntimeErrorContentErrorpublic void transitionTo(String rnm) throws RuntimeError
RuntimeErrorpublic void doneBuild()
public void doneInit()
public void initRegime()
throws RuntimeError
RuntimeErrorpublic void setExpressionDerived(ArrayList<ExpressionDerivedVariable> exderiveds)
public void setFixeds(ArrayList<FixedQuantity> fqs)
public void setInstanceProperties(ArrayList<InstanceProperty> ips)
public void setLocalValues(LocalValues lpvals)
public HashMap<String,DoublePointer> getVarHM()
public HashMap<String,DoublePointer> getExpHM()
public void addInputPort(String s, ActionBlock actionBlock)
public void checkAddInputPort(String s)
public void addOutputPort(String s)
public void sendFromPort(String sop) throws RuntimeError
RuntimeErrorpublic InPort getFirstInPort() throws ConnectionError
getFirstInPort in interface StateRunnableConnectionErrorpublic InPort getInPort(String portId) throws ConnectionError
getInPort in interface StateRunnableConnectionErrorpublic String stateString()
stateString in interface StateRunnablepublic void exportState(String pfx, double t, LineDisplay ld)
exportState in interface StateRunnablepublic HashMap<String,DoublePointer> getVariables()
getVariables in interface StateRunnablepublic StateWrapper getWrapper(String snm)
getWrapper in interface StateRunnablepublic StateRunnable getChild(String snm) throws ConnectionError
getChild in interface StateRunnableConnectionErrorpublic double getVariable(String varname) throws RuntimeError
getVariable in interface StateRunnableRuntimeErrorpublic String getChildSummary()
getChildSummary in interface StateRunnablepublic int getChildCount()
public void addChild(String s, StateRunnable newInstance)
public void addRefChild(String s, StateRunnable sr)
public void addListChild(String tnm, String sid, StateInstance newInstance)
public StateRunnable getChildInstance(String snm) throws ContentError
getChildInstance in interface StateRunnableContentErrorpublic boolean hasChildInstance(String snm) throws ContentError
hasChildInstance in interface StateRunnableContentErrorpublic boolean hasIDInstance(String s)
public StateRunnable getIDInstance(String s)
public boolean hasMultiInstance(String snm)
public MultiInstance getMultiInstance(String snm)
public void addPathStateInstance(String pth, StateRunnable pl)
public StateRunnable getPathStateInstance(String pth) throws ContentError
getPathStateInstance in interface StateRunnableContentErrorpublic ArrayList<StateRunnable> getListItems()
public StateRunnable getScopeInstance(String id)
getScopeInstance in interface StateRunnablepublic String getPathStringValue(String path, double fac, double off) throws ContentError, RuntimeError
getPathStringValue in interface StateRunnableContentErrorRuntimeErrorpublic void addPathStateArray(String pth, ArrayList<StateRunnable> pla) throws ContentError
ContentErrorpublic ArrayList<StateRunnable> getPathStateArray(String pth) throws ContentError
ContentErrorpublic void donePaths()
public void addAttachmentSet(String s, MultiInstance inas)
public void addAttachment(StateInstance inst) throws ConnectionError, ContentError, RuntimeError
addAttachment in interface StateRunnableConnectionErrorContentErrorRuntimeErrorpublic void addAttachment(String s, StateInstance inst) throws ConnectionError, ContentError, RuntimeError
addAttachment in interface StateRunnableConnectionErrorContentErrorRuntimeErrorpublic void addKSchemeInst(KSchemeInst ksi)
public void setVariable(String vnm, double pval)
setVariable in interface StateRunnablepublic void setNewVariable(String vnm, double pval)
setNewVariable in interface StateRunnablepublic StateType getStateType()
public OutPort getFirstOutPort() throws ConnectionError
getFirstOutPort in interface StateRunnableConnectionErrorpublic OutPort getOutPort(String sop)
getOutPort in interface StateRunnablepublic void addRegime(RegimeStateInstance rsi)
public void receiveRegimeEvent(String name) throws RuntimeError
RuntimeErrorpublic boolean hasVariable(String s)
public DoublePointer getVariablePtr(String s)
public ArrayList<StateRunnable> getStateInstances(String path) throws ConnectionError, ContentError, RuntimeError
getStateInstances in interface StateRunnableConnectionErrorContentErrorRuntimeErrorpublic ArrayList<StateRunnable> quietGetStateInstances(String path) throws ConnectionError, ContentError, RuntimeError
quietGetStateInstances in interface StateRunnableConnectionErrorContentErrorRuntimeErrorpublic ArrayList<StateRunnable> getStateInstances() throws ConnectionError, ContentError, RuntimeError
getStateInstances in interface StateRunnableConnectionErrorContentErrorRuntimeErrorpublic void checkBuilt()
throws ConnectionError,
ContentError,
RuntimeError
checkBuilt in interface StateRunnableConnectionErrorContentErrorRuntimeErrorpublic int getMultiInstanceCount()
public boolean hasSingleMI()
hasSingleMI in interface StateRunnablepublic MultiInstance getSingleMI()
getSingleMI in interface StateRunnablepublic void addInstanceSet(String s)
public void addInstanceSet(InstanceSet<StateRunnable> newIS)
public InstanceSet<StateRunnable> getInstanceSet(String col)
getInstanceSet in interface StateRunnablepublic void addInstancePairSet(String s)
public void addInstancePairSet(InstancePairSet<StateRunnable> newIS)
public InstancePairSet<StateRunnable> getInstancePairSet(String col)
public void coCopy(StateInstance psi)
public InstanceSet<StateRunnable> getUniqueInstanceSet() throws ContentError
getUniqueInstanceSet in interface StateRunnableContentErrorpublic ArrayList<StateRunnable> getPathInstances(String sel) throws ContentError, ConnectionError, RuntimeError
getPathInstances in interface StateRunnableContentErrorConnectionErrorRuntimeErrorpublic double getFloatProperty(String sel) throws ContentError
getFloatProperty in interface StateRunnableContentErrorpublic double quietGetFloatProperty(String sel) throws ContentError
quietGetFloatProperty in interface StateRunnableContentErrorpublic void startArray(String snm)
public void addToArray(String snm, StateRunnable pc)
public Object getWork()
getWork in interface StateRunnablepublic String getTypeParam(String satt) throws ContentError
ContentErrorpublic boolean hasTypeParam(String satt)
public HashMap<String,MultiInstance> getMultiHM()
public Object getComponentID()
getComponentID in interface StateRunnablepublic String getDimensionString(String fld) throws ContentError
getDimensionString in interface StateRunnableContentErrorCopyright © 2019. All rights reserved.