AtomLeafAgentManager.AgentSource<MeterChainLength.AtomTag>, DataSourceIndependent, IDataSource, java.io.Serializablepublic 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 IDataSourceprotected void setupData(int maxChainLength)
public MeterChainLength.AtomTag makeAgent(IAtom a, Box agentBox)
AtomLeafAgentManager.AgentSourcemakeAgent in interface AtomLeafAgentManager.AgentSource<MeterChainLength.AtomTag>agentBox - TODOpublic void releaseAgent(MeterChainLength.AtomTag agent, IAtom atom, Box agentBox)
AtomLeafAgentManager.AgentSourcereleaseAgent in interface AtomLeafAgentManager.AgentSource<MeterChainLength.AtomTag>public IData getData()
getData in interface IDataSourcepublic void reset()
public DataDoubleArray.DataInfoDoubleArray getIndependentDataInfo(int i)
DataSourceIndependentgetIndependentDataInfo in interface DataSourceIndependentpublic DataDoubleArray getIndependentData(int i)
DataSourceIndependentgetIndependentData in interface DataSourceIndependentpublic int getIndependentArrayDimension()
DataSourceIndependentgetIndependentArrayDimension in interface DataSourceIndependentpublic DataTag getIndependentTag()
DataSourceIndependentgetIndependentTag in interface DataSourceIndependentprotected int recursiveTag(IAtom a)
public Box getBox()
public void setBox(Box box)
public IDataInfo getDataInfo()
getDataInfo in interface IDataSourcepublic AtomType getIgnoredAtomType()
public void setIgnoredAtomType(AtomType ignoredAtomType)