JTP API Documentation

jtp.frame.listen
Class AbstractVCListener

java.lang.Object
  |
  +--jtp.frame.listen.AbstractVCListener
All Implemented Interfaces:
Serializable, ValueCollectionListener
Direct Known Subclasses:
LinkingVCListener, OneWayValueInferringVCListener, UnrollingVCListener, ValueInferringVCListener

public abstract class AbstractVCListener
extends Object
implements ValueCollectionListener, Serializable

An abstract implementation of ValueCollectionListener with basic functionality for processing direct values and input links that are added to SlotValueCollections.

See Also:
Serialized Form

Field Summary
protected  VCListenerCreationReasoningStep creationRS
           
protected  List vars
           
protected static boolean VERBOSE
           
 
Constructor Summary
protected AbstractVCListener(Object val, Object val2, Symbol sign, VCListenerCreationReasoningStep rs)
           
protected AbstractVCListener(Object val, VCListenerCreationReasoningStep rs)
           
 
Method Summary
protected  boolean acceptableValueLink(ValueLink vl)
           
 void directValueAdded(Object val, ReasoningStep rs, ReasoningStepCollector rsc)
           
 void inputLinkAdded(ValueLink vl, ReasoningStepCollector rsc)
           
 void outputLinkAdded(ValueLink vl, ReasoningStepCollector rsc)
           
protected abstract  ReasoningStep[] prepareResult(List subproofs)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vars

protected transient List vars

creationRS

protected transient VCListenerCreationReasoningStep creationRS

VERBOSE

protected static boolean VERBOSE
Constructor Detail

AbstractVCListener

protected AbstractVCListener(Object val,
                             VCListenerCreationReasoningStep rs)

AbstractVCListener

protected AbstractVCListener(Object val,
                             Object val2,
                             Symbol sign,
                             VCListenerCreationReasoningStep rs)
Method Detail

prepareResult

protected abstract ReasoningStep[] prepareResult(List subproofs)

directValueAdded

public void directValueAdded(Object val,
                             ReasoningStep rs,
                             ReasoningStepCollector rsc)
Specified by:
directValueAdded in interface ValueCollectionListener

acceptableValueLink

protected boolean acceptableValueLink(ValueLink vl)

toString

public String toString()
Overrides:
toString in class Object

inputLinkAdded

public void inputLinkAdded(ValueLink vl,
                           ReasoningStepCollector rsc)
Specified by:
inputLinkAdded in interface ValueCollectionListener

outputLinkAdded

public void outputLinkAdded(ValueLink vl,
                            ReasoningStepCollector rsc)
Specified by:
outputLinkAdded in interface ValueCollectionListener

JTP API Documentation