EASE.Sensing.Specification
Class CellReference

java.lang.Object
  |
  +--EASE.Sensing.Specification.CellReference
Direct Known Subclasses:
InputObjectFieldReference, ParameterReference, SensorReference

public class CellReference
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 java.lang.String cellName
          Deprecated. Use getCellName();
 java.lang.String fileName
          Deprecated. Use getFileName();
private  java.util.Vector instantiatedParams
           
private  java.util.Vector params
           
(package private) static long serialVersionUID
           
 
Constructor Summary
CellReference(java.io.File f, java.lang.String name)
           
CellReference(java.io.File f, java.lang.String name, java.util.Vector instantiated, java.util.Vector params)
          The parameters are stored with the Cell Reference so that the agent condition specification systems know what parameters exist.
CellReference(java.lang.String file, java.lang.String name)
           
CellReference(java.lang.String fileName, java.lang.String name, java.util.Vector instantiated)
          The instantiated vector contains values that have been instantiated for parameters within the agent specification system.
CellReference(java.lang.String fileName, java.lang.String name, java.util.Vector instantiated, java.util.Vector params)
           
 
Method Summary
 java.lang.String getCellName()
           
 java.lang.String getFileName()
           
 java.lang.String getFullName()
           
 java.util.Vector getInstantiated()
           
 java.util.Vector getParameters()
          To get the naming consistent across the system.
 java.util.Vector getParams()
          Deprecated.  
 void setInstantiated(java.util.Vector instantiated, SpecExport spec)
          The instantiated parameters are all translated to CellReferences here.
 java.lang.String toString()
          For display
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

fileName

public java.lang.String fileName
Deprecated. Use getFileName();

cellName

public java.lang.String cellName
Deprecated. Use getCellName();

instantiatedParams

private java.util.Vector instantiatedParams

params

private java.util.Vector params

serialVersionUID

static final long serialVersionUID
Constructor Detail

CellReference

public CellReference(java.lang.String file,
                     java.lang.String name)

CellReference

public CellReference(java.io.File f,
                     java.lang.String name)

CellReference

public CellReference(java.lang.String fileName,
                     java.lang.String name,
                     java.util.Vector instantiated)
The instantiated vector contains values that have been instantiated for parameters within the agent specification system.


CellReference

public CellReference(java.io.File f,
                     java.lang.String name,
                     java.util.Vector instantiated,
                     java.util.Vector params)
The parameters are stored with the Cell Reference so that the agent condition specification systems know what parameters exist.

The parameters are stored as ParameterReferences.

Possibly not the most elegant solution.


CellReference

public CellReference(java.lang.String fileName,
                     java.lang.String name,
                     java.util.Vector instantiated,
                     java.util.Vector params)
Method Detail

setInstantiated

public void setInstantiated(java.util.Vector instantiated,
                            SpecExport spec)
The instantiated parameters are all translated to CellReferences here. When they are retrieved they need to be translated back to Cells.

The parameters are translated into ParameterReferences and may also need to be translated back.


getInstantiated

public java.util.Vector getInstantiated()

getParams

public java.util.Vector getParams()
Deprecated.  
This function returns all the parameters for the Cell that are not instantiated further down the hierarchy somewhere (including here!).


getParameters

public java.util.Vector getParameters()
To get the naming consistent across the system.


toString

public java.lang.String toString()
For display
Overrides:
toString in class java.lang.Object

getFileName

public java.lang.String getFileName()

getCellName

public java.lang.String getCellName()

getFullName

public java.lang.String getFullName()