public class BasicSymbolicChunkType extends NotifyingSlotContainer implements IRemovableSymbolicChunkType
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<IChunkType> |
_children |
protected java.util.Collection<IChunk> |
_chunks |
protected java.lang.String |
_name |
protected IChunkType |
_parentChunkType
This refers to the IChunkType object that this is the symbolic portion of.
|
protected java.util.Collection<IChunkType> |
_supertypeParents |
_useMutable
Constructor and Description |
---|
BasicSymbolicChunkType()
Constructor for the DefaultSymbolicChunkType5 object
|
Modifier and Type | Method and Description |
---|---|
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
|
IChunkType |
addParent(IChunkType ct)
grab the slots of the parent and the children
|
void |
addSlot(ISlot s)
Adds a feature to the ISlot attribute of the DefaultSymbolicChunkType5
object
|
void |
bind(IChunkType wrapper,
java.util.Collection<IChunkType> parents) |
boolean |
canModify()
Yes, you can modify the slots (add/remove) but off if not encoded
|
void |
dispose()
Description of the Method
|
void |
encode() |
java.lang.Object |
getAdapter(java.lang.Class adapterClass) |
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
|
int |
getNumberOfParents() |
IChunkType |
getParent()
single inheritance parent access.
|
java.util.Collection<IChunkType> |
getParents()
Return the immediate parent of this chunktype.
|
boolean |
hasSlot(ISlot s) |
boolean |
isA(IChunkType ct) |
boolean |
isAuthoritative(ISlot slot)
Gets the authoritative attribute of the DefaultSymbolicChunkType5 object
|
void |
removeChild(IChunkType chunkType)
noop for now
|
void |
removeChunk(IChunk chunk)
remove this chunk from the chunktype's list of encoded chunks.
|
void |
removeParent(IChunkType chunkType)
Noop for now.
|
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
|
addListener, createSlot, removeListener, setDelegateContainer, valueChanged
clear, getMutableSlots, getSlot, getSlots, getSlots, hasSlot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSlot, hasSlot
getSlots, getSlots
protected java.util.Collection<IChunkType> _children
protected java.util.Collection<IChunk> _chunks
protected java.lang.String _name
protected IChunkType _parentChunkType
protected java.util.Collection<IChunkType> _supertypeParents
public BasicSymbolicChunkType()
public void bind(IChunkType wrapper, java.util.Collection<IChunkType> parents)
public void dispose()
ISymbolicChunkType
dispose
in interface ISymbolicChunkType
dispose
in class NotifyingSlotContainer
public java.util.Collection<IChunkType> getParents()
ISymbolicChunkType
getParents
in interface ISymbolicChunkType
ISymbolicChunkType.getParent()
public IChunkType getParent()
ISymbolicChunkType
getParent
in interface ISymbolicChunkType
public int getNumberOfParents()
public java.lang.String getName()
ISymbolicChunkType
getName
in interface ISymbolicChunkType
ISymbolicChunkType.getName()
public void setName(java.lang.String name)
ISymbolicChunkType
setName
in interface ISymbolicChunkType
name
- The new chunkTypeName valuepublic IChunkType addParent(IChunkType ct)
addParent
in interface ISymbolicChunkType
public java.util.Collection<IChunkType> getChildren()
getChildren
in interface ISymbolicChunkType
public int getNumberOfChildren()
ISymbolicChunkType
getNumberOfChildren
in interface ISymbolicChunkType
public void addChild(IChunkType ct)
ISymbolicChunkType
addChild
in interface ISymbolicChunkType
ISymbolicChunkType.addChild(org.jactr.core.chunktype.IChunkType)
public java.util.Collection<IChunk> getChunks()
getChunks
in interface ISymbolicChunkType
public void addChunk(IChunk c)
addChunk
in interface ISymbolicChunkType
ISymbolicChunkType.addChunk(org.jactr.core.chunk.IChunk)
public int getNumberOfChunks()
ISymbolicChunkType
getNumberOfChunks
in interface ISymbolicChunkType
public boolean hasSlot(ISlot s)
public boolean canModify()
public boolean isAuthoritative(ISlot slot)
slot
- Description of the Parameterpublic void addSlot(ISlot s)
addSlot
in interface ISlotContainer
addSlot
in class NotifyingSlotContainer
s
- The feature to be added to the ISlot attributepublic void removeSlot(ISlot s)
removeSlot
in interface ISlotContainer
removeSlot
in class NotifyingSlotContainer
s
- Description of Parameterpublic boolean isA(IChunkType ct)
isA
in interface ISymbolicChunkType
public java.lang.String toString()
toString
in class java.lang.Object
public void encode()
encode
in interface ISymbolicChunkType
public java.lang.Object getAdapter(java.lang.Class adapterClass)
getAdapter
in interface IAdaptable
public void removeChunk(IChunk chunk)
removeChunk
in interface IRemovableSymbolicChunkType
public void removeChild(IChunkType chunkType)
removeChild
in interface IRemovableSymbolicChunkType
public void removeParent(IChunkType chunkType)
removeParent
in interface IRemovableSymbolicChunkType