public class PrimaryPropertyAccessor
extends java.lang.Object
Constructor and Description |
---|
PrimaryPropertyAccessor()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addInput(ModelInput anInput) |
PropertyAccessor |
getAccessorFor(AcceleratorNode node)
get the accessor for the specified node
|
ModelInput |
getInput(AcceleratorNode aNode,
java.lang.String propName)
Returns the ModelInput for the specified node's property, or null if there
is none.
|
java.util.Map<java.lang.String,java.lang.Double> |
getWhatifValueMapFromCache(java.lang.Object objNode)
Use the cache rather than other sources for the value map and then apply the model inputs
|
boolean |
hasAccessorFor(AcceleratorNode aNode)
Returns true if there is an accessor for the specified node type, false otherwise.
|
java.util.List<java.lang.String> |
propertyNamesFor(AcceleratorNode aNode)
Returns a List of property names for the supplied node.
|
void |
removeInput(AcceleratorNode aNode,
java.lang.String property) |
void |
requestValuesForNodes(java.util.Collection<AcceleratorNode> nodes,
java.lang.String syncMode)
request values for the nodes and the specified sync mode
|
ModelInput |
setModelInput(AcceleratorNode aNode,
java.lang.String property,
double val)
Sets the specified node's property to the specified value.
|
java.util.Map<java.lang.String,java.lang.Double> |
valueMapFor(java.lang.Object objNode)
Returns a Map of property values for the supplied node.
|
public void requestValuesForNodes(java.util.Collection<AcceleratorNode> nodes, java.lang.String syncMode)
public java.util.Map<java.lang.String,java.lang.Double> valueMapFor(java.lang.Object objNode)
objNode
- the AcclereatorNode whose properties to returnProxyException
- if the node's accessor encounters an error getting a property valuepublic java.util.Map<java.lang.String,java.lang.Double> getWhatifValueMapFromCache(java.lang.Object objNode)
public java.util.List<java.lang.String> propertyNamesFor(AcceleratorNode aNode)
aNode
- AcceleratorNode whose property names to returnpublic PropertyAccessor getAccessorFor(AcceleratorNode node)
public boolean hasAccessorFor(AcceleratorNode aNode)
aNode
- AcceleratorNode whose type to find an accessor forpublic ModelInput setModelInput(AcceleratorNode aNode, java.lang.String property, double val)
aNode
- node whose property to setproperty
- name of property to setval
- double value for propertypublic ModelInput getInput(AcceleratorNode aNode, java.lang.String propName)
aNode
- node whose property to get a ModelInput forpropName
- name of property to get a ModelInput forprotected void addInput(ModelInput anInput)
public void removeInput(AcceleratorNode aNode, java.lang.String property)