public class NativeWrapper extends Object implements StateRunnable
Constructor and Description |
---|
NativeWrapper(GeneratedInstance geninst,
NativeType nt) |
public NativeWrapper(GeneratedInstance geninst, NativeType nt)
public void advance(StateRunnable parent, double t, double dt) throws RuntimeError, ContentError
advance
in interface StateRunnable
RuntimeError
ContentError
public double getVariable(String varname) throws RuntimeError
getVariable
in interface StateRunnable
RuntimeError
public StateRunnable getChild(String snm) throws ConnectionError
getChild
in interface StateRunnable
ConnectionError
public void exportState(String pfx, double t, LineDisplay ld)
exportState
in interface StateRunnable
public InPort getFirstInPort() throws ConnectionError
getFirstInPort
in interface StateRunnable
ConnectionError
public InPort getInPort(String portId) throws ConnectionError
getInPort
in interface StateRunnable
ConnectionError
public StateWrapper getWrapper(String string)
getWrapper
in interface StateRunnable
public HashMap<String,DoublePointer> getVariables()
getVariables
in interface StateRunnable
public String stateString()
stateString
in interface StateRunnable
public void setVariable(String varname, double d)
setVariable
in interface StateRunnable
public String getID()
getID
in interface StateRunnable
public void setNewVariable(String string, double d)
setNewVariable
in interface StateRunnable
public void evaluate(StateRunnable parent) throws RuntimeError, ContentError
evaluate
in interface StateRunnable
RuntimeError
ContentError
public void initialize(StateRunnable sr) throws RuntimeError, ContentError
initialize
in interface StateRunnable
RuntimeError
ContentError
public Object getComponentID()
getComponentID
in interface StateRunnable
public boolean hasChildInstance(String string)
hasChildInstance
in interface StateRunnable
public StateRunnable getChildInstance(String string) throws ContentError
getChildInstance
in interface StateRunnable
ContentError
public ArrayList<StateRunnable> quietGetStateInstances(String path) throws ConnectionError, ContentError, RuntimeError
quietGetStateInstances
in interface StateRunnable
ConnectionError
ContentError
RuntimeError
public void setParent(StateRunnable par)
setParent
in interface StateRunnable
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 StateRunnable getScopeInstance(String id)
getScopeInstance
in interface StateRunnable
public ArrayList<StateRunnable> getPathInstances(String sel) throws ContentError, ConnectionError, RuntimeError
getPathInstances
in interface StateRunnable
ContentError
ConnectionError
RuntimeError
public double quietGetFloatProperty(String sel) throws ContentError
quietGetFloatProperty
in interface StateRunnable
ContentError
public boolean hasSingleMI()
hasSingleMI
in interface StateRunnable
public OutPort getOutPort(String sourcePortId)
getOutPort
in interface StateRunnable
public StateRunnable getPathStateInstance(String path) throws ContentError
getPathStateInstance
in interface StateRunnable
ContentError
public OutPort getFirstOutPort()
getFirstOutPort
in interface StateRunnable
public StateRunnable getParent()
getParent
in interface StateRunnable
public InstanceSet<StateRunnable> getUniqueInstanceSet() throws ContentError
getUniqueInstanceSet
in interface StateRunnable
ContentError
public InstanceSet<StateRunnable> getInstanceSet(String col)
getInstanceSet
in interface StateRunnable
public Object getWork()
getWork
in interface StateRunnable
public ArrayList<StateRunnable> getStateInstances(String path) throws ConnectionError, ContentError, RuntimeError
getStateInstances
in interface StateRunnable
ConnectionError
ContentError
RuntimeError
public double getFloatProperty(String sel) throws ContentError
getFloatProperty
in interface StateRunnable
ContentError
public String getPathStringValue(String fieldName, double fac, double off) throws ContentError, RuntimeError
getPathStringValue
in interface StateRunnable
ContentError
RuntimeError
public void addAttachment(String destAttachments, StateInstance rsi) throws ConnectionError, ContentError, RuntimeError
addAttachment
in interface StateRunnable
ConnectionError
ContentError
RuntimeError
public MultiInstance getSingleMI()
getSingleMI
in interface StateRunnable
public void setList(String childrenName)
setList
in interface StateRunnable
public String getChildSummary()
getChildSummary
in interface StateRunnable
public boolean isBuilt()
isBuilt
in interface StateRunnable
public void addAttachment(StateInstance rsi) throws ConnectionError, ContentError, RuntimeError
addAttachment
in interface StateRunnable
ConnectionError
ContentError
RuntimeError
public String getDimensionString(String lastbit)
getDimensionString
in interface StateRunnable
Copyright © 2020. All rights reserved.