org.jactr.core.production.basic
Class AbstractProduction

java.lang.Object
  extended by org.jactr.core.production.basic.AbstractProduction
All Implemented Interfaces:
java.lang.Comparable<IProduction>, IProduction, Commentable
Direct Known Subclasses:
AbstractInstantiation, DefaultProduction5, DefaultProduction6

public abstract class AbstractProduction
extends java.lang.Object
implements IProduction


Constructor Summary
AbstractProduction(IModel model)
           
 
Method Summary
 void addListener(IProductionListener pl, java.util.concurrent.Executor executor)
           
 int compareTo(IProduction arg0)
           
 void dispatch(ProductionEvent pe)
           
 void dispose()
          Description of the Method
 void encode()
           
 java.lang.String getComment()
          Gets the comment attribute of the Commentable object
 IModel getModel()
          get the model that this production is associated with
 ISubsymbolicProduction getSubsymbolicProduction()
          Gets the subsymbolicProduction attribute of the IProduction object
 ISymbolicProduction getSymbolicProduction()
          Gets the symbolicProduction attribute of the IProduction object
 boolean hasListeners()
           
 java.util.Collection<IInstantiation> instantiateAll(java.util.Collection<java.util.Map<java.lang.String,java.lang.Object>> provisionalBindings)
          attempts to instantiate this production given the current state of the model as defined by the collection of buffers.
 boolean isEncoded()
           
 void removeListener(IProductionListener pl)
           
 void setComment(java.lang.String comment)
          Sets the comment attribute of the Commentable object
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractProduction

public AbstractProduction(IModel model)
Method Detail

addListener

public void addListener(IProductionListener pl,
                        java.util.concurrent.Executor executor)
Specified by:
addListener in interface IProduction

dispose

public void dispose()
Description copied from interface: IProduction
Description of the Method

Specified by:
dispose in interface IProduction

getModel

public IModel getModel()
Description copied from interface: IProduction
get the model that this production is associated with

Specified by:
getModel in interface IProduction
Returns:

getSubsymbolicProduction

public ISubsymbolicProduction getSubsymbolicProduction()
Description copied from interface: IProduction
Gets the subsymbolicProduction attribute of the IProduction object

Specified by:
getSubsymbolicProduction in interface IProduction
Returns:
The subsymbolicProduction value

getSymbolicProduction

public ISymbolicProduction getSymbolicProduction()
Description copied from interface: IProduction
Gets the symbolicProduction attribute of the IProduction object

Specified by:
getSymbolicProduction in interface IProduction
Returns:
The symbolicProduction value

instantiateAll

public java.util.Collection<IInstantiation> instantiateAll(java.util.Collection<java.util.Map<java.lang.String,java.lang.Object>> provisionalBindings)
                                                    throws CannotInstantiateException
Description copied from interface: IProduction
attempts to instantiate this production given the current state of the model as defined by the collection of buffers. returns an instantiation of this production

Specified by:
instantiateAll in interface IProduction
Throws:
CannotInstantiateException

toString

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

hasListeners

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

dispatch

public void dispatch(ProductionEvent pe)
Specified by:
dispatch in interface IProduction

removeListener

public void removeListener(IProductionListener pl)
Specified by:
removeListener in interface IProduction

compareTo

public int compareTo(IProduction arg0)
Specified by:
compareTo in interface java.lang.Comparable<IProduction>

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)
Description copied from interface: Commentable
Sets the comment attribute of the Commentable object

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

encode

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

isEncoded

public boolean isEncoded()
Specified by:
isEncoded in interface IProduction