|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.chunk.basic.BasicSymbolicChunk
public class BasicSymbolicChunk
default symbolic chunk implementation
| Constructor Summary | |
|---|---|
BasicSymbolicChunk(IChunk parentChunk,
IChunkType ct)
|
|
| Method Summary | |
|---|---|
void |
addSlot(ISlot s)
will set the value of a slot You cannot add slots to a chunk, only the chunk-type - but this will set the value, assuming the slot exists |
boolean |
canModify()
cannot add/remove slots from a chunk |
void |
dispose()
clear resources |
void |
encode(double when)
no op |
IChunkType |
getChunkType()
Returns the IChunkType of this chunk. |
java.lang.String |
getName()
Return the name of the chunk. |
IChunk |
getParentChunk()
return the IChunk wrapper |
ISlot |
getSlot(java.lang.String slotName)
return the actual slot |
java.util.Collection<? extends ISlot> |
getSlots()
return a collection of the ACTUAL slots |
java.util.Collection<ISlot> |
getSlots(java.util.Collection<ISlot> slots)
non-locking since the number of slots never changes |
boolean |
isA(IChunkType ct)
Returns true if the chunk has any parent chunktype of ct. |
boolean |
isAStrict(IChunkType ct)
Returns true if and only if the immediate chunktype parent is ct.SymbolicChunk.getChunkType()==ct. |
void |
removeSlot(ISlot s)
noop |
void |
setName(java.lang.String name)
set the chunk name, once encoded this will fail |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicSymbolicChunk(IChunk parentChunk,
IChunkType ct)
| Method Detail |
|---|
public boolean canModify()
public void dispose()
dispose in interface ISymbolicChunkpublic IChunk getParentChunk()
getParentChunk in interface ISymbolicChunkpublic void encode(double when)
encode in interface ISymbolicChunkwhen - TODOpublic java.lang.String getName()
ISymbolicChunk
getName in interface ISymbolicChunkISymbolicChunk.getName()public void setName(java.lang.String name)
setName in interface ISymbolicChunkname - The new chunkName valuepublic IChunkType getChunkType()
ISymbolicChunk
getChunkType in interface ISymbolicChunkISymbolicChunk.getChunkType()public java.util.Collection<? extends ISlot> getSlots()
getSlots in interface ISlotContainerISlotContainer.getSlots()public java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> slots)
getSlots in interface ISlotContainerslots -
ISlotContainer.getSlots(java.util.Collection)public void addSlot(ISlot s)
addSlot in interface ISlotContainers - The feature to be added to the ISlot attributepublic void removeSlot(ISlot s)
removeSlot in interface ISlotContainers - Description of ParameterISlotContainer.removeSlot(org.jactr.core.slot.ISlot)public boolean isA(IChunkType ct)
ISymbolicChunk
isA in interface ISymbolicChunkct - Description of Parameter
ISymbolicChunk.isA(org.jactr.core.chunktype.IChunkType)public boolean isAStrict(IChunkType ct)
ISymbolicChunk
isAStrict in interface ISymbolicChunkct - Description of Parameter
ISymbolicChunk.isAStrict(org.jactr.core.chunktype.IChunkType)public ISlot getSlot(java.lang.String slotName)
getSlot in interface IUniqueSlotContainerpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||