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 StateRunnable
public String getInfo()
public void setParent(StateRunnable p)
setParent
in interface StateRunnable
public StateRunnable getParent()
getParent
in interface StateRunnable
public boolean isBuilt()
isBuilt
in interface StateRunnable
public void setList(String s)
setList
in interface StateRunnable
public boolean isList()
public double getCurrentTime()
public void initialize(StateRunnable parent) throws RuntimeError, ContentError
initialize
in interface StateRunnable
RuntimeError
ContentError
public void evaluate(StateRunnable parent) throws RuntimeError, ContentError
evaluate
in interface StateRunnable
RuntimeError
ContentError
public void advance(StateRunnable parent, double t, double dt) throws RuntimeError, ContentError
advance
in interface StateRunnable
RuntimeError
ContentError
public void transitionTo(String rnm) throws RuntimeError
RuntimeError
public void doneBuild()
public void doneInit()
public void initRegime() throws RuntimeError
RuntimeError
public 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
RuntimeError
public InPort getFirstInPort() throws ConnectionError
getFirstInPort
in interface StateRunnable
ConnectionError
public InPort getInPort(String portId) throws ConnectionError
getInPort
in interface StateRunnable
ConnectionError
public String stateString()
stateString
in interface StateRunnable
public void exportState(String pfx, double t, LineDisplay ld)
exportState
in interface StateRunnable
public HashMap<String,DoublePointer> getVariables()
getVariables
in interface StateRunnable
public StateWrapper getWrapper(String snm)
getWrapper
in interface StateRunnable
public StateRunnable getChild(String snm) throws ConnectionError
getChild
in interface StateRunnable
ConnectionError
public double getVariable(String varname) throws RuntimeError
getVariable
in interface StateRunnable
RuntimeError
public String getChildSummary()
getChildSummary
in interface StateRunnable
public 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 StateRunnable
ContentError
public boolean hasChildInstance(String snm) throws ContentError
hasChildInstance
in interface StateRunnable
ContentError
public 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 StateRunnable
ContentError
public ArrayList<StateRunnable> getListItems()
public StateRunnable getScopeInstance(String id)
getScopeInstance
in interface StateRunnable
public String getPathStringValue(String path, double fac, double off) throws ContentError, RuntimeError
getPathStringValue
in interface StateRunnable
ContentError
RuntimeError
public void addPathStateArray(String pth, ArrayList<StateRunnable> pla) throws ContentError
ContentError
public ArrayList<StateRunnable> getPathStateArray(String pth) throws ContentError
ContentError
public void donePaths()
public void addAttachmentSet(String s, MultiInstance inas)
public void addAttachment(StateInstance inst) throws ConnectionError, ContentError, RuntimeError
addAttachment
in interface StateRunnable
ConnectionError
ContentError
RuntimeError
public void addAttachment(String s, StateInstance inst) throws ConnectionError, ContentError, RuntimeError
addAttachment
in interface StateRunnable
ConnectionError
ContentError
RuntimeError
public void addKSchemeInst(KSchemeInst ksi)
public void setVariable(String vnm, double pval)
setVariable
in interface StateRunnable
public void setNewVariable(String vnm, double pval)
setNewVariable
in interface StateRunnable
public StateType getStateType()
public OutPort getFirstOutPort() throws ConnectionError
getFirstOutPort
in interface StateRunnable
ConnectionError
public OutPort getOutPort(String sop)
getOutPort
in interface StateRunnable
public void addRegime(RegimeStateInstance rsi)
public void receiveRegimeEvent(String name) throws RuntimeError
RuntimeError
public boolean hasVariable(String s)
public DoublePointer getVariablePtr(String s)
public ArrayList<StateRunnable> getStateInstances(String path) throws ConnectionError, ContentError, RuntimeError
getStateInstances
in interface StateRunnable
ConnectionError
ContentError
RuntimeError
public ArrayList<StateRunnable> quietGetStateInstances(String path) throws ConnectionError, ContentError, RuntimeError
quietGetStateInstances
in interface StateRunnable
ConnectionError
ContentError
RuntimeError
public ArrayList<StateRunnable> getStateInstances() throws ConnectionError, ContentError, RuntimeError
getStateInstances
in interface StateRunnable
ConnectionError
ContentError
RuntimeError
public void checkBuilt() throws ConnectionError, ContentError, RuntimeError
checkBuilt
in interface StateRunnable
ConnectionError
ContentError
RuntimeError
public int getMultiInstanceCount()
public boolean hasSingleMI()
hasSingleMI
in interface StateRunnable
public MultiInstance getSingleMI()
getSingleMI
in interface StateRunnable
public void addInstanceSet(String s)
public void addInstanceSet(InstanceSet<StateRunnable> newIS)
public InstanceSet<StateRunnable> getInstanceSet(String col)
getInstanceSet
in interface StateRunnable
public 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 StateRunnable
ContentError
public ArrayList<StateRunnable> getPathInstances(String sel) throws ContentError, ConnectionError, RuntimeError
getPathInstances
in interface StateRunnable
ContentError
ConnectionError
RuntimeError
public double getFloatProperty(String sel) throws ContentError
getFloatProperty
in interface StateRunnable
ContentError
public double quietGetFloatProperty(String sel) throws ContentError
quietGetFloatProperty
in interface StateRunnable
ContentError
public void startArray(String snm)
public void addToArray(String snm, StateRunnable pc)
public Object getWork()
getWork
in interface StateRunnable
public String getTypeParam(String satt) throws ContentError
ContentError
public boolean hasTypeParam(String satt)
public HashMap<String,MultiInstance> getMultiHM()
public Object getComponentID()
getComponentID
in interface StateRunnable
public String getDimensionString(String fld) throws ContentError
getDimensionString
in interface StateRunnable
ContentError
Copyright © 2020. All rights reserved.