org.jactr.core.chunk.five
Class DefaultChunk5

java.lang.Object
  extended by org.jactr.core.chunk.basic.AbstractChunk
      extended by org.jactr.core.chunk.five.DefaultChunk5
All Implemented Interfaces:
java.lang.Comparable<IChunk>, IChunk, Commentable, IMetaContainer

public class DefaultChunk5
extends AbstractChunk

The DefaulChunk class implements the basic structure for the IChunk interface.

Author:
harrison

Constructor Summary
DefaultChunk5(IChunkType parentChunkType)
          Constructor for the DefaultChunk5 object
 
Method Summary
 void dispatch(ChunkEvent event)
          dispatch events from this chunk outward - events are only dispatched if this chunk is valid - i.e.
 void dispose()
          Description of the Method
 boolean equals(java.lang.Object obj)
           
 ISubsymbolicChunk getSubsymbolicChunk()
          Gets the ISubsymbolicChunk attribute of the DefaultChunk5 object
 ISymbolicChunk getSymbolicChunk()
          Gets the ISymbolicChunk attribute of the DefaultChunk5 object
 int hashCode()
           
 void replaceContents(IChunk masterChunk)
          Description of the Method
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class org.jactr.core.chunk.basic.AbstractChunk
addListener, addListener, compareTo, dispatch, encode, equalsSymbolic, getComment, getMetaData, getMetaDataKeys, getModel, getReadLock, getWriteLock, hasBeenDisposed, hasListeners, hasParameterListeners, isA, isAStrict, isEncoded, isMutable, removeListener, removeListener, setComment, setMetaData, setMutable
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultChunk5

public DefaultChunk5(IChunkType parentChunkType)
Constructor for the DefaultChunk5 object

Method Detail

getSubsymbolicChunk

public ISubsymbolicChunk getSubsymbolicChunk()
Gets the ISubsymbolicChunk attribute of the DefaultChunk5 object

Specified by:
getSubsymbolicChunk in interface IChunk
Specified by:
getSubsymbolicChunk in class AbstractChunk
Returns:
The ISubsymbolicChunk value
Since:
See Also:
IChunk.getSubsymbolicChunk()

getSymbolicChunk

public ISymbolicChunk getSymbolicChunk()
Gets the ISymbolicChunk attribute of the DefaultChunk5 object

Specified by:
getSymbolicChunk in interface IChunk
Specified by:
getSymbolicChunk in class AbstractChunk
Returns:
The ISymbolicChunk value
Since:
See Also:
IChunk.getSymbolicChunk()

dispatch

public void dispatch(ChunkEvent event)
dispatch events from this chunk outward - events are only dispatched if this chunk is valid - i.e. has both fully constructed symbolic and subsymbolic components. this means that chunktype, slot_add, slot_remove events will never get passed and are therefor deprecated

Specified by:
dispatch in interface IChunk
Overrides:
dispatch in class AbstractChunk
See Also:
IChunk.dispatch(org.jactr.core.chunk.event.ChunkEvent)

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class java.lang.Object
Returns:
Description of the Returned Value
Since:

replaceContents

public void replaceContents(IChunk masterChunk)
Description of the Method

Overrides:
replaceContents in class AbstractChunk
Parameters:
mergie - Description of the Parameter

dispose

public void dispose()
Description of the Method

Specified by:
dispose in interface IChunk
Overrides:
dispose in class AbstractChunk
Since:
See Also:
IChunk.dispose()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object