org.jactr.core.chunktype
Interface IChunkType

All Superinterfaces:
Commentable, java.lang.Comparable<IChunkType>
All Known Implementing Classes:
AbstractChunkType, DefaultChunkType5

public interface IChunkType
extends java.lang.Comparable<IChunkType>, Commentable

The class the represents the top-level wrapper for common ChunkTypes. Contains the wrapper for Symbolic, SubsymbolicChunkTypes and the event listeners

Author:
harrison

Method Summary
 void addListener(IChunkTypeListener ctl, java.util.concurrent.Executor executor)
          add chunk listener
 void dispatch(ChunkTypeEvent event)
           
 void dispose()
          Called when one is sure the IChunkType shall not be used again.
 void encode()
           
 IModel getModel()
          get the model that contains this chunktype
 ISubsymbolicChunkType getSubsymbolicChunkType()
          return the subsymbolic portion
 ISymbolicChunkType getSymbolicChunkType()
          return the symbolic compoentn.
 boolean hasListeners()
           
 boolean isA(IChunkType ct)
          Gets the a attribute of the IChunkType object
 boolean isEncoded()
          has this chunktype been encoded
 void removeListener(IChunkTypeListener ctl)
          remove chunk listener
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.jactr.core.utils.Commentable
getComment, setComment
 

Method Detail

getSymbolicChunkType

ISymbolicChunkType getSymbolicChunkType()
return the symbolic compoentn.


getSubsymbolicChunkType

ISubsymbolicChunkType getSubsymbolicChunkType()
return the subsymbolic portion


addListener

void addListener(IChunkTypeListener ctl,
                 java.util.concurrent.Executor executor)
add chunk listener


removeListener

void removeListener(IChunkTypeListener ctl)
remove chunk listener


hasListeners

boolean hasListeners()

dispatch

void dispatch(ChunkTypeEvent event)

dispose

void dispose()
Called when one is sure the IChunkType shall not be used again. This may call the dispose() method of all the derived Chunks.

Since:

isA

boolean isA(IChunkType ct)
Gets the a attribute of the IChunkType object

Parameters:
ct - Description of Parameter
Returns:
The a value
Since:

encode

void encode()

isEncoded

boolean isEncoded()
has this chunktype been encoded

Returns:

getModel

IModel getModel()
get the model that contains this chunktype

Returns: