org.jactr.core.chunktype.basic
Class AbstractChunkType

java.lang.Object
  extended by org.jactr.core.chunktype.basic.AbstractChunkType
All Implemented Interfaces:
java.lang.Comparable<IChunkType>, IChunkType, Commentable
Direct Known Subclasses:
DefaultChunkType5

public abstract class AbstractChunkType
extends java.lang.Object
implements IChunkType


Constructor Summary
AbstractChunkType(IModel model)
           
 
Method Summary
 void addListener(IChunkTypeListener cl, java.util.concurrent.Executor executor)
          Adds a feature to the IChunkTypeListener attribute of the DefaultChunkType5 object
 int compareTo(IChunkType o)
          lexically compare chunktypes
 void dispatch(ChunkTypeEvent event)
          Description of the Method
 void dispose()
          Description of the Method
 void encode()
           
 boolean equals(IChunkType obj)
          Description of the Method
 java.lang.String getComment()
          Gets the comment attribute of the Commentable object
 IModel getModel()
          get the model that contains this chunktype
 boolean hasListeners()
           
 boolean isA(IChunkType ct)
          Gets the a attribute of the IChunkType object
 boolean isEncoded()
          has this chunktype been encoded
 void removeListener(IChunkTypeListener cl)
          remove chunk listener
 void setComment(java.lang.String comment)
          Sets the comment attribute of the DefaultChunkType5 object
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jactr.core.chunktype.IChunkType
getSubsymbolicChunkType, getSymbolicChunkType
 

Constructor Detail

AbstractChunkType

public AbstractChunkType(IModel model)
Method Detail

encode

public void encode()
Specified by:
encode in interface IChunkType

getModel

public IModel getModel()
Description copied from interface: IChunkType
get the model that contains this chunktype

Specified by:
getModel in interface IChunkType
Returns:

isEncoded

public boolean isEncoded()
Description copied from interface: IChunkType
has this chunktype been encoded

Specified by:
isEncoded in interface IChunkType
Returns:

hasListeners

public boolean hasListeners()
Specified by:
hasListeners in interface IChunkType

addListener

public void addListener(IChunkTypeListener cl,
                        java.util.concurrent.Executor executor)
Adds a feature to the IChunkTypeListener attribute of the DefaultChunkType5 object

Specified by:
addListener in interface IChunkType

removeListener

public void removeListener(IChunkTypeListener cl)
Description copied from interface: IChunkType
remove chunk listener

Specified by:
removeListener in interface IChunkType

dispatch

public void dispatch(ChunkTypeEvent event)
Description of the Method

Specified by:
dispatch in interface IChunkType

getComment

public java.lang.String getComment()
Description copied from interface: Commentable
Gets the comment attribute of the Commentable object

Specified by:
getComment in interface Commentable
Returns:
The comment value

setComment

public void setComment(java.lang.String comment)
Sets the comment attribute of the DefaultChunkType5 object

Specified by:
setComment in interface Commentable
Parameters:
comment - The new comment value

isA

public boolean isA(IChunkType ct)
Description copied from interface: IChunkType
Gets the a attribute of the IChunkType object

Specified by:
isA in interface IChunkType
Parameters:
ct - Description of Parameter
Returns:
The a value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(IChunkType o)
lexically compare chunktypes

Specified by:
compareTo in interface java.lang.Comparable<IChunkType>

dispose

public void dispose()
Description of the Method

Specified by:
dispose in interface IChunkType
Since:

equals

public boolean equals(IChunkType obj)
Description of the Method

Parameters:
obj - Description of Parameter
Returns:
Description of the Returned Value
Since: