EASE.Sensing.Engine.CalcInterpret
Class Parameter

java.lang.Object
  |
  +--EASE.Sensing.Engine.CalcInterpret.Node
        |
        +--EASE.Sensing.Engine.CalcInterpret.Parameter

public class Parameter
extends Node

Encapsulates an instantiated agent specific parameter.

Also handles Factory suggestions.


Field Summary
private  java.lang.String[] factoryPath
           
private  java.lang.String name
           
 Parameter specParameter
           
private  java.lang.String vectorFactoryName
           
 
Fields inherited from class EASE.Sensing.Engine.CalcInterpret.Node
children, debugger, name
 
Constructor Summary
Parameter(Parameter specParam)
          This constructor does the translation between specification and engine.
Parameter(java.lang.String name)
          Don't know when or if this constructor would be called Seems to be called by Agent Spec parameters
 
Method Summary
 java.lang.Object execute(java.util.Hashtable params)
          This executes by looking through the list of instantiated parameters and finding a match.
 java.lang.Object execute(java.util.Hashtable params, java.lang.StringBuffer sb)
           
private  java.lang.Object getVFSuggestion(VectorFactorySuggestion vfs)
           
 java.lang.String toString()
           
 
Methods inherited from class EASE.Sensing.Engine.CalcInterpret.Node
getChildren, getListType, getName, replicate, setChildren, setName
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

name

private java.lang.String name

vectorFactoryName

private java.lang.String vectorFactoryName

factoryPath

private java.lang.String[] factoryPath

specParameter

public Parameter specParameter
Constructor Detail

Parameter

public Parameter(java.lang.String name)
Don't know when or if this constructor would be called Seems to be called by Agent Spec parameters


Parameter

public Parameter(Parameter specParam)
This constructor does the translation between specification and engine. A reference to the specification object is is kept so that instantiations within the Cell/Node system (as opposed to agent instantiations can be optimized). See Cell.java
Method Detail

execute

public java.lang.Object execute(java.util.Hashtable params)
This executes by looking through the list of instantiated parameters and finding a match. If there is none the debugger writes a message and null is returned.

Factory suggestions are handled via this interface. When the factory makes it's suggestion it is inserted as a parameter with name FactorySuggestion.NAME+factoryName. Vector factories are handled as a special case.

Overrides:
execute in class Node

execute

public java.lang.Object execute(java.util.Hashtable params,
                                java.lang.StringBuffer sb)
Overrides:
execute in class Node

getVFSuggestion

private java.lang.Object getVFSuggestion(VectorFactorySuggestion vfs)

toString

public java.lang.String toString()
Overrides:
toString in class Node