|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.chunktype.basic.BasicSymbolicChunkType
public class BasicSymbolicChunkType
default impl. All slots and parenting must be resolved before the given chunktype is encoded. parents must be encoded as well. chunks, however, can be added after encoding
| Constructor Summary | |
|---|---|
BasicSymbolicChunkType(AbstractChunkType parentChunkType,
IChunkType superParentType)
|
|
| Method Summary | |
|---|---|
void |
addChild(IChunkType ct)
add a chunktype as a child, |
void |
addChunk(IChunk c)
add this chunk to this chunktype and then up the parental hierachy |
void |
addSlot(ISlot s)
Adds a feature to the ISlot attribute of the DefaultSymbolicChunkType5 object |
boolean |
canModify()
Yes, you can modify the slots (add/remove) but off if not encoded |
void |
dispose()
Description of the Method |
void |
encode()
|
java.util.Collection<IChunkType> |
getChildren()
return all the chunktypes that are directly decended from this one |
java.util.Collection<IChunk> |
getChunks()
return all chunks of this type |
java.lang.String |
getName()
Return the unique chunktype name. |
int |
getNumberOfChildren()
Gets the numberOfChildren attribute of the ISymbolicChunkType object |
int |
getNumberOfChunks()
Gets the numberOfChunks attribute of the ISymbolicChunkType object |
IChunkType |
getParent()
Return the immediate parent of this chunktype |
ISlot |
getSlot(java.lang.String name)
return the actual named slot. |
java.util.Collection<? extends ISlot> |
getSlots()
return all slots |
java.util.Collection<ISlot> |
getSlots(java.util.Collection<ISlot> slots)
|
boolean |
hasSlot(ISlot s)
|
boolean |
isA(IChunkType ct)
|
boolean |
isAuthoritative(ISlot slot)
Gets the authoritative attribute of the DefaultSymbolicChunkType5 object |
void |
removeSlot(ISlot s)
Description of the Method |
void |
setName(java.lang.String name)
Set the chunktype name. |
java.lang.String |
toString()
Description of the Method |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicSymbolicChunkType(AbstractChunkType parentChunkType,
IChunkType superParentType)
| Method Detail |
|---|
public void dispose()
ISymbolicChunkType
dispose in interface ISymbolicChunkTypepublic IChunkType getParent()
ISymbolicChunkType
getParent in interface ISymbolicChunkTypeISymbolicChunkType.getParent()public java.lang.String getName()
ISymbolicChunkType
getName in interface ISymbolicChunkTypeISymbolicChunkType.getName()public void setName(java.lang.String name)
ISymbolicChunkType
setName in interface ISymbolicChunkTypename - The new chunkTypeName valuepublic java.util.Collection<IChunkType> getChildren()
getChildren in interface ISymbolicChunkTypepublic int getNumberOfChildren()
ISymbolicChunkType
getNumberOfChildren in interface ISymbolicChunkTypepublic void addChild(IChunkType ct)
ISymbolicChunkType
addChild in interface ISymbolicChunkTypeISymbolicChunkType.addChild(org.jactr.core.chunktype.IChunkType)public java.util.Collection<IChunk> getChunks()
getChunks in interface ISymbolicChunkTypepublic void addChunk(IChunk c)
addChunk in interface ISymbolicChunkTypeISymbolicChunkType.addChunk(org.jactr.core.chunk.IChunk)public int getNumberOfChunks()
ISymbolicChunkType
getNumberOfChunks in interface ISymbolicChunkTypepublic java.util.Collection<? extends ISlot> getSlots()
getSlots in interface ISlotContainerpublic java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> slots)
getSlots in interface ISlotContainerpublic boolean hasSlot(ISlot s)
public boolean canModify()
public ISlot getSlot(java.lang.String name)
IUniqueSlotContainer
getSlot in interface IUniqueSlotContainerpublic boolean isAuthoritative(ISlot slot)
slot - Description of the Parameter
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 Parameterpublic boolean isA(IChunkType ct)
isA in interface ISymbolicChunkTypepublic java.lang.String toString()
toString in class java.lang.Objectpublic void encode()
encode in interface ISymbolicChunkType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||