public abstract class AbstractProduction extends DefaultAdaptable implements IProduction
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_comment |
protected boolean |
_encoded |
protected ACTREventDispatcher<IProduction,IProductionListener> |
_eventDispatcher |
protected IModel |
_model |
protected ISubsymbolicProduction |
_subsymbolicProduction |
protected ISymbolicProduction |
_symbolicProduction |
Constructor and Description |
---|
AbstractProduction(IModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IProductionListener pl,
java.util.concurrent.Executor executor) |
int |
compareTo(IProduction arg0) |
protected abstract IInstantiation |
createInstantiation(AbstractProduction parent,
java.util.Collection<ICondition> boundConditions,
VariableBindings bindings)
return a new instantiation
|
protected abstract ISubsymbolicProduction |
createSubsymbolicProduction(AbstractProduction production,
IModel model) |
protected abstract ISymbolicProduction |
createSymbolicProduction(AbstractProduction production,
IModel model) |
void |
dispatch(ProductionEvent pe) |
void |
dispose()
Description of the Method
|
void |
encode() |
java.lang.Object |
getAdapter(java.lang.Class adapterClass) |
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<VariableBindings> 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() |
addAdapterFactory, removeAdapterFactory
protected ACTREventDispatcher<IProduction,IProductionListener> _eventDispatcher
protected ISymbolicProduction _symbolicProduction
protected ISubsymbolicProduction _subsymbolicProduction
protected IModel _model
protected java.lang.String _comment
protected boolean _encoded
public AbstractProduction(IModel model)
protected abstract ISymbolicProduction createSymbolicProduction(AbstractProduction production, IModel model)
protected abstract ISubsymbolicProduction createSubsymbolicProduction(AbstractProduction production, IModel model)
public void addListener(IProductionListener pl, java.util.concurrent.Executor executor)
addListener
in interface IProduction
public void dispose()
IProduction
dispose
in interface IProduction
public IModel getModel()
IProduction
getModel
in interface IProduction
public ISubsymbolicProduction getSubsymbolicProduction()
IProduction
getSubsymbolicProduction
in interface IProduction
public ISymbolicProduction getSymbolicProduction()
IProduction
getSymbolicProduction
in interface IProduction
public java.util.Collection<IInstantiation> instantiateAll(java.util.Collection<VariableBindings> provisionalBindings) throws CannotInstantiateException
IProduction
instantiateAll
in interface IProduction
CannotInstantiateException
protected abstract IInstantiation createInstantiation(AbstractProduction parent, java.util.Collection<ICondition> boundConditions, VariableBindings bindings) throws CannotInstantiateException
parent
- boundConditions
- bindings
- CannotInstantiateException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasListeners()
hasListeners
in interface IProduction
public void dispatch(ProductionEvent pe)
dispatch
in interface IProduction
public void removeListener(IProductionListener pl)
removeListener
in interface IProduction
public int compareTo(IProduction arg0)
compareTo
in interface java.lang.Comparable<IProduction>
public java.lang.String getComment()
ICommentable
getComment
in interface ICommentable
public void setComment(java.lang.String comment)
ICommentable
setComment
in interface ICommentable
comment
- The new comment valuepublic void encode()
encode
in interface IProduction
public boolean isEncoded()
isEncoded
in interface IProduction
public java.lang.Object getAdapter(java.lang.Class adapterClass)
getAdapter
in interface IAdaptable
getAdapter
in class DefaultAdaptable