eu.larkc.jactr.core.chunk.larkc
Class BasicSymbolicChunkLarKC

java.lang.Object
  extended by org.jactr.core.slot.UniqueSlotContainer
      extended by org.jactr.core.slot.NotifyingSlotContainer
          extended by org.jactr.core.chunk.basic.BasicSymbolicChunk
              extended by eu.larkc.jactr.core.chunk.rdf.BasicSymbolicChunkRdf
                  extended by eu.larkc.jactr.core.chunk.larkc.BasicSymbolicChunkLarKC
All Implemented Interfaces:
ISymbolicChunkLarKC, ISymbolicChunkRdf, ISymbolicChunk, INotifyingSlotContainer, ISlotContainer, IUniqueSlotContainer, IAdaptable

public class BasicSymbolicChunkLarKC
extends BasicSymbolicChunkRdf
implements ISymbolicChunkLarKC

The symbolic half of an RDF chunk.

Author:
Martijn Brakenhoff

Field Summary
 
Fields inherited from interface eu.larkc.jactr.core.chunk.larkc.ISymbolicChunkLarKC
LARKC_DATA_CHUNKTYPE_NAME
 
Fields inherited from interface eu.larkc.jactr.core.chunk.rdf.ISymbolicChunkRdf
RDF_SLOT_NAME
 
Constructor Summary
BasicSymbolicChunkLarKC(DefaultChunkRdf parentChunk, IChunkType ct)
           
 
Method Summary
 Object getLarKCData()
          Retrieve the LarKC Data stored in this Chunk.
 void setLarKCData(InformationSet data)
          Sets the LarKC Data to the given InformationSet.
 void setLarKCData(Query data)
          Sets the LarKC Data to the given Query.
 void setLarKCDataCollection(Collection<?> data)
          Sets the LarKC Data to be the given Collection.
 
Methods inherited from class eu.larkc.jactr.core.chunk.rdf.BasicSymbolicChunkRdf
addSlot, getChunkResource, getRdfData, setName, setRdfData
 
Methods inherited from class org.jactr.core.chunk.basic.BasicSymbolicChunk
canModify, dispose, encode, getAdapter, getChunkType, getName, getParentChunk, getSlot, isA, isAStrict, removeSlot, toString, valueChanged
 
Methods inherited from class org.jactr.core.slot.NotifyingSlotContainer
addListener, removeListener, setDelegateContainer
 
Methods inherited from class org.jactr.core.slot.UniqueSlotContainer
clear, getMutableSlots, getSlots, getSlots, hasSlot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface eu.larkc.jactr.core.chunk.rdf.ISymbolicChunkRdf
getChunkResource, getRdfData, setRdfData
 
Methods inherited from interface org.jactr.core.chunk.ISymbolicChunk
dispose, encode, getChunkType, getName, getParentChunk, isA, isAStrict, setName
 
Methods inherited from interface org.jactr.core.slot.IUniqueSlotContainer
getSlot
 
Methods inherited from interface org.jactr.core.slot.ISlotContainer
addSlot, getSlots, getSlots, removeSlot
 
Methods inherited from interface org.jactr.core.utils.IAdaptable
getAdapter
 

Constructor Detail

BasicSymbolicChunkLarKC

public BasicSymbolicChunkLarKC(DefaultChunkRdf parentChunk,
                               IChunkType ct)
Method Detail

getLarKCData

public Object getLarKCData()
Description copied from interface: ISymbolicChunkLarKC
Retrieve the LarKC Data stored in this Chunk.

Specified by:
getLarKCData in interface ISymbolicChunkLarKC
Returns:
the data stored in this chunk.

setLarKCData

public void setLarKCData(InformationSet data)
Description copied from interface: ISymbolicChunkLarKC
Sets the LarKC Data to the given InformationSet.

Specified by:
setLarKCData in interface ISymbolicChunkLarKC
Parameters:
data - the InformationSet that should be stored in this chunk.

setLarKCData

public void setLarKCData(Query data)
Description copied from interface: ISymbolicChunkLarKC
Sets the LarKC Data to the given Query.

Specified by:
setLarKCData in interface ISymbolicChunkLarKC
Parameters:
data - the Query that should be stored in this chunk.

setLarKCDataCollection

public void setLarKCDataCollection(Collection<?> data)
                            throws IllegalArgumentException
Description copied from interface: ISymbolicChunkLarKC
Sets the LarKC Data to be the given Collection. Accepts only Collection and Collection objects.

Specified by:
setLarKCDataCollection in interface ISymbolicChunkLarKC
Parameters:
data - A Collection that should be used as the LarKC data.
Throws:
IllegalArgumentException - if the data was not a Collection or a Collection.