org.jactr.core.production.basic
Class AbstractInstantiation

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

public abstract class AbstractInstantiation
extends AbstractProduction
implements IInstantiation


Constructor Summary
AbstractInstantiation(AbstractProduction parent, java.util.Collection<ICondition> boundConditions, java.util.Map<java.lang.String,java.lang.Object> variableBindings)
           
 
Method Summary
 int compareTo(IProduction arg0)
           
 void dispose()
          Description of the Method
 double fire(double firingTime)
          fire the instantiation returning the amount of time it should take
 double getActionLatency()
          Gets the actionLatency attribute of the IInstantiation object
 java.lang.String getComment()
          Gets the comment attribute of the Commentable object
 IModel getModel()
          get the model that this production is associated with
 IProduction getProduction()
          Gets the production attribute of the IInstantiation object
 ISubsymbolicProduction getSubsymbolicProduction()
          Gets the subsymbolicProduction attribute of the IProduction object
 double getTimeFired()
          Gets the timeFired attribute of the IInstantiation object
 java.util.Map<java.lang.String,java.lang.Object> getVariableBindings()
          Gets the variableBindings attribute of the IInstantiation object
 void setComment(java.lang.String comment)
          Sets the comment attribute of the Commentable object
 
Methods inherited from class org.jactr.core.production.basic.AbstractProduction
addListener, dispatch, encode, getSymbolicProduction, hasListeners, instantiateAll, isEncoded, removeListener, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jactr.core.production.IProduction
addListener, dispatch, encode, getSymbolicProduction, hasListeners, instantiateAll, isEncoded, removeListener
 

Constructor Detail

AbstractInstantiation

public AbstractInstantiation(AbstractProduction parent,
                             java.util.Collection<ICondition> boundConditions,
                             java.util.Map<java.lang.String,java.lang.Object> variableBindings)
                      throws CannotInstantiateException
Throws:
CannotInstantiateException
Method Detail

getActionLatency

public double getActionLatency()
Description copied from interface: IInstantiation
Gets the actionLatency attribute of the IInstantiation object

Specified by:
getActionLatency in interface IInstantiation
Returns:
The actionLatency value

getProduction

public IProduction getProduction()
Description copied from interface: IInstantiation
Gets the production attribute of the IInstantiation object

Specified by:
getProduction in interface IInstantiation
Returns:
The production value

getTimeFired

public double getTimeFired()
Description copied from interface: IInstantiation
Gets the timeFired attribute of the IInstantiation object

Specified by:
getTimeFired in interface IInstantiation
Returns:
The timeFired value

getVariableBindings

public java.util.Map<java.lang.String,java.lang.Object> getVariableBindings()
Description copied from interface: IInstantiation
Gets the variableBindings attribute of the IInstantiation object

Specified by:
getVariableBindings in interface IInstantiation
Returns:
The variableBindings value

dispose

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

Specified by:
dispose in interface IProduction
Overrides:
dispose in class AbstractProduction

getModel

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

Specified by:
getModel in interface IProduction
Overrides:
getModel in class AbstractProduction
Returns:

getSubsymbolicProduction

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

Specified by:
getSubsymbolicProduction in interface IProduction
Overrides:
getSubsymbolicProduction in class AbstractProduction
Returns:
The subsymbolicProduction value

compareTo

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

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
Overrides:
getComment in class AbstractProduction
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
Overrides:
setComment in class AbstractProduction
Parameters:
comment - The new comment value

fire

public double fire(double firingTime)
Description copied from interface: IInstantiation
fire the instantiation returning the amount of time it should take

Specified by:
fire in interface IInstantiation
Parameters:
firingTime - TODO
Returns: