|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IChunk
The basic chunk wrapper to contain the symbolic and subsymbolic portions. It is also the point of access for all event notification.
| Method Summary | |
|---|---|
void |
addListener(IChunkListener cl,
java.util.concurrent.Executor executor)
add a chunk listener that will be notified with this executor |
void |
addListener(IParameterListener pl,
java.util.concurrent.Executor executor)
add a parameter listener that will be notified with this executor |
void |
dispatch(ChunkEvent chunkEvent)
dispatch an event. |
void |
dispatch(ParameterEvent parameterEvent)
dispatch parameter event |
void |
dispose()
called when one is sure that this chunk will NEVER be used. |
void |
encode(double when)
flag that this chunk has been encoded |
boolean |
equalsSymbolic(IChunk chunk)
returns true if the symbolic contents of the two chunks are the same, i.e. |
IModel |
getModel()
get the model that is responsible for this chunk, note: the chunk may not have been encoded yet |
java.util.concurrent.locks.Lock |
getReadLock()
return the read lock for this chunk. |
ISubsymbolicChunk |
getSubsymbolicChunk()
return the subsymbolic portion of the chunk |
ISymbolicChunk |
getSymbolicChunk()
return the symbolic component of the chunk |
java.util.concurrent.locks.Lock |
getWriteLock()
return the read lock for this chunk. |
boolean |
hasBeenDisposed()
|
boolean |
hasListeners()
are there listeners attached? |
boolean |
hasParameterListeners()
are there parameter listeners? |
boolean |
isA(IChunkType ct)
is this chunk this type (checks all ancestors) |
boolean |
isAStrict(IChunkType ct)
is this chunk's immediate type this |
boolean |
isEncoded()
has this chunk been encoded? |
boolean |
isMutable()
will return true if this chunks slots can be changed after encoding (like visual-location chunks). |
void |
removeListener(IChunkListener cl)
remove said listener |
void |
removeListener(IParameterListener pl)
remove said listener |
void |
setMutable(boolean isMutable)
set that this chunk should be considered mutable |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.jactr.core.utils.Commentable |
|---|
getComment, setComment |
| Methods inherited from interface org.jactr.core.utils.IMetaContainer |
|---|
getMetaData, getMetaDataKeys, setMetaData |
| Method Detail |
|---|
void addListener(IChunkListener cl,
java.util.concurrent.Executor executor)
cl - executor -
void addListener(IParameterListener pl,
java.util.concurrent.Executor executor)
pl - executor - void removeListener(IChunkListener cl)
cl - void removeListener(IParameterListener pl)
pl - boolean hasListeners()
boolean hasParameterListeners()
void dispatch(ChunkEvent chunkEvent)
chunkEvent - void dispatch(ParameterEvent parameterEvent)
parameterEvent - ISubsymbolicChunk getSubsymbolicChunk()
ISymbolicChunk getSymbolicChunk()
void encode(double when)
when - TODOboolean isEncoded()
void dispose()
IDeclarativeModule. To dispose
of a chunk, use IDeclarativeModule.dispose(IChunk) instead
boolean hasBeenDisposed()
boolean isA(IChunkType ct)
ct -
boolean isAStrict(IChunkType ct)
boolean isMutable()
void setMutable(boolean isMutable)
isMutable - IModel getModel()
boolean equalsSymbolic(IChunk chunk)
chunk - cannot be null
java.util.concurrent.locks.Lock getReadLock()
Lock.unlock() is wrapped within the finally clause.
java.util.concurrent.locks.Lock getWriteLock()
Lock.unlock() is wrapped within the finally clause.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||