AtomLeafAgentManager.AgentSource<MeterChainLength.AtomTag>
, DataSourceIndependent
, IDataSource
, java.io.Serializable
public class MeterChainLength extends java.lang.Object implements IDataSource, java.io.Serializable, AtomLeafAgentManager.AgentSource<MeterChainLength.AtomTag>, DataSourceIndependent
Modifier and Type | Class | Description |
---|---|---|
static class |
MeterChainLength.AtomTag |
Modifier and Type | Field | Description |
---|---|---|
protected AtomLeafAgentManager<IAtom[]> |
agentManager |
|
protected Box |
box |
|
protected DataFunction |
data |
|
protected DataFunction.DataInfoFunction |
dataInfo |
|
protected AtomType |
ignoredAtomType |
|
protected DataTag |
tag |
|
protected AtomLeafAgentManager<MeterChainLength.AtomTag> |
tagManager |
|
protected DataDoubleArray |
xData |
|
protected DataDoubleArray.DataInfoDoubleArray |
xDataInfo |
|
protected DataTag |
xTag |
Constructor | Description |
---|---|
MeterChainLength(AtomLeafAgentManager<IAtom[]> aam) |
Modifier and Type | Method | Description |
---|---|---|
Box |
getBox() |
|
IData |
getData() |
|
IDataInfo |
getDataInfo() |
|
AtomType |
getIgnoredAtomType() |
|
int |
getIndependentArrayDimension() |
Returns the number of independent data dimensions
|
DataDoubleArray |
getIndependentData(int i) |
Returns the X data for the given dimension
|
DataDoubleArray.DataInfoDoubleArray |
getIndependentDataInfo(int i) |
Returns the DataInfo for the given dimension
|
DataTag |
getIndependentTag() |
Returns the tag associated with this DataSource.
|
DataTag |
getTag() |
|
MeterChainLength.AtomTag |
makeAgent(IAtom a,
Box agentBox) |
Returns an agent for the given Atom.
|
protected int |
recursiveTag(IAtom a) |
|
void |
releaseAgent(MeterChainLength.AtomTag agent,
IAtom atom,
Box agentBox) |
This informs the agent source that the agent is going away and that
the agent source should disconnect the agent from other elements.
|
void |
reset() |
|
void |
setBox(Box box) |
|
void |
setIgnoredAtomType(AtomType ignoredAtomType) |
|
protected void |
setupData(int maxChainLength) |
Creates the data object (a DataFunction) to be returned by getData().
|
protected final DataTag tag
protected final DataTag xTag
protected Box box
protected AtomLeafAgentManager<MeterChainLength.AtomTag> tagManager
protected AtomLeafAgentManager<IAtom[]> agentManager
protected DataFunction data
protected DataDoubleArray xData
protected DataDoubleArray.DataInfoDoubleArray xDataInfo
protected DataFunction.DataInfoFunction dataInfo
protected AtomType ignoredAtomType
public MeterChainLength(AtomLeafAgentManager<IAtom[]> aam)
public DataTag getTag()
getTag
in interface IDataSource
protected void setupData(int maxChainLength)
public MeterChainLength.AtomTag makeAgent(IAtom a, Box agentBox)
AtomLeafAgentManager.AgentSource
makeAgent
in interface AtomLeafAgentManager.AgentSource<MeterChainLength.AtomTag>
agentBox
- TODOpublic void releaseAgent(MeterChainLength.AtomTag agent, IAtom atom, Box agentBox)
AtomLeafAgentManager.AgentSource
releaseAgent
in interface AtomLeafAgentManager.AgentSource<MeterChainLength.AtomTag>
public IData getData()
getData
in interface IDataSource
public void reset()
public DataDoubleArray.DataInfoDoubleArray getIndependentDataInfo(int i)
DataSourceIndependent
getIndependentDataInfo
in interface DataSourceIndependent
public DataDoubleArray getIndependentData(int i)
DataSourceIndependent
getIndependentData
in interface DataSourceIndependent
public int getIndependentArrayDimension()
DataSourceIndependent
getIndependentArrayDimension
in interface DataSourceIndependent
public DataTag getIndependentTag()
DataSourceIndependent
getIndependentTag
in interface DataSourceIndependent
protected int recursiveTag(IAtom a)
public Box getBox()
public void setBox(Box box)
public IDataInfo getDataInfo()
getDataInfo
in interface IDataSource
public AtomType getIgnoredAtomType()
public void setIgnoredAtomType(AtomType ignoredAtomType)