public abstract class AbstractInstantiation extends AbstractProduction implements IInstantiation
Modifier and Type | Field and Description |
---|---|
protected double |
_executionTime |
protected double |
_firingTime |
protected AbstractProduction |
_production |
protected VariableBindings |
_variableBindings |
_comment, _encoded, _eventDispatcher, _model, _subsymbolicProduction, _symbolicProduction
Constructor and Description |
---|
AbstractInstantiation(AbstractProduction parent,
java.util.Collection<ICondition> boundConditions,
VariableBindings variableBindings) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IProduction arg0) |
protected IInstantiation |
createInstantiation(AbstractProduction parent,
java.util.Collection<ICondition> boundConditions,
VariableBindings bindings)
can't instantiate an instnatiation
|
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
|
VariableBindings |
getVariableBindings()
Gets the variableBindings attribute of the IInstantiation object
|
protected void |
notifyBuffers(double now)
Notify the buffer that the bound chunk has been accessed(matched)
|
void |
setComment(java.lang.String comment)
Sets the comment attribute of the Commentable object
|
addListener, createSubsymbolicProduction, createSymbolicProduction, dispatch, encode, getAdapter, getSymbolicProduction, hasListeners, instantiateAll, isEncoded, removeListener, toString
addAdapterFactory, removeAdapterFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, dispatch, encode, getSymbolicProduction, hasListeners, instantiateAll, isEncoded, removeListener
getAdapter
protected AbstractProduction _production
protected VariableBindings _variableBindings
protected double _firingTime
protected double _executionTime
public AbstractInstantiation(AbstractProduction parent, java.util.Collection<ICondition> boundConditions, VariableBindings variableBindings) throws CannotInstantiateException
CannotInstantiateException
public double getActionLatency()
IInstantiation
getActionLatency
in interface IInstantiation
public IProduction getProduction()
IInstantiation
getProduction
in interface IInstantiation
public double getTimeFired()
IInstantiation
getTimeFired
in interface IInstantiation
public VariableBindings getVariableBindings()
IInstantiation
getVariableBindings
in interface IInstantiation
public void dispose()
IProduction
dispose
in interface IProduction
dispose
in class AbstractProduction
public IModel getModel()
IProduction
getModel
in interface IProduction
getModel
in class AbstractProduction
public ISubsymbolicProduction getSubsymbolicProduction()
IProduction
getSubsymbolicProduction
in interface IProduction
getSubsymbolicProduction
in class AbstractProduction
public int compareTo(IProduction arg0)
compareTo
in interface java.lang.Comparable<IProduction>
compareTo
in class AbstractProduction
public java.lang.String getComment()
ICommentable
getComment
in interface ICommentable
getComment
in class AbstractProduction
public void setComment(java.lang.String comment)
ICommentable
setComment
in interface ICommentable
setComment
in class AbstractProduction
comment
- The new comment valueprotected IInstantiation createInstantiation(AbstractProduction parent, java.util.Collection<ICondition> boundConditions, VariableBindings bindings) throws CannotInstantiateException
createInstantiation
in class AbstractProduction
CannotInstantiateException
public double fire(double firingTime)
IInstantiation
fire
in interface IInstantiation
firingTime
- TODOprotected void notifyBuffers(double now)