fr.inria.oadymppac.parsing.gentra4cp
Class DefaultExplanationEvent

java.lang.Object
  extended byfr.inria.oadymppac.parsing.event.EventImpl
      extended byfr.inria.oadymppac.parsing.gentra4cp.BasicExplanationEvent
          extended byfr.inria.oadymppac.parsing.gentra4cp.DefaultExplanationEvent
All Implemented Interfaces:
CauseEventListener, CauseListProvider, java.lang.Cloneable, ConstraintsEventListener, ConstraintsProvider, DTDExplanationElement, Event, java.util.EventListener, EventListener, ExplanationAttributes, ExplanationEvent, RangeEventListener, ValueListProvider, ValuesEventListener

public class DefaultExplanationEvent
extends BasicExplanationEvent
implements ExplanationEvent, ValueListProvider, RangeEventListener, ValuesEventListener, ConstraintsProvider, ConstraintsEventListener, CauseListProvider, CauseEventListener

Author:
raf

Field Summary
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.event.ExplanationEvent
EVENT_TYPE
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.dtd.DTDExplanationElement
EXPLANATION
 
Fields inherited from interface fr.inria.oadymppac.parsing.event.Event
logger
 
Fields inherited from interface fr.inria.oadymppac.parsing.event.EventListener
logger
 
Constructor Summary
DefaultExplanationEvent()
           
 
Method Summary
 void eventProcess(CauseEvent ev)
           
 void eventProcess(ConstraintsEvent ev)
           
 void eventProcess(Event e)
           
 void eventProcess(RangeEvent ev)
           
 void eventProcess(ValuesEvent ev)
           
 CauseListInfo getCauseList()
           
 ConstraintsInfo getConstraints()
           
 ValueListInfo getValueList()
           
 void processEnd()
           
 void processInstruction(java.lang.String target, java.lang.String data)
           
 void processStart()
           
 void reset()
           
 void setCauseList(CauseListInfo causeList)
           
 void setConstraints(ConstraintsInfo constraints)
           
 void setValueList(ValueListInfo valueList)
           
 
Methods inherited from class fr.inria.oadymppac.parsing.gentra4cp.BasicExplanationEvent
clone, getEventType, getInfo, init
 
Methods inherited from class fr.inria.oadymppac.parsing.event.EventImpl
getAllAttributes, getAnyValue, getSource, init, setAllAttributes, setSource, terminate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.inria.oadymppac.parsing.event.Event
getAnyValue, getEventType, getInfo, getSource, init, init, setSource, terminate
 

Constructor Detail

DefaultExplanationEvent

public DefaultExplanationEvent()
Method Detail

eventProcess

public void eventProcess(RangeEvent ev)
Specified by:
eventProcess in interface RangeEventListener
Parameters:
ev -

eventProcess

public void eventProcess(ValuesEvent ev)
Specified by:
eventProcess in interface ValuesEventListener
Parameters:
ev -

eventProcess

public void eventProcess(ConstraintsEvent ev)
Specified by:
eventProcess in interface ConstraintsEventListener

eventProcess

public void eventProcess(CauseEvent ev)
Specified by:
eventProcess in interface CauseEventListener

eventProcess

public void eventProcess(Event e)
Specified by:
eventProcess in interface EventListener

getValueList

public ValueListInfo getValueList()
Specified by:
getValueList in interface ValueListProvider
Returns:

setValueList

public void setValueList(ValueListInfo valueList)
Specified by:
setValueList in interface ValueListProvider
Parameters:
valueList -

reset

public void reset()
Specified by:
reset in interface Event
Overrides:
reset in class BasicExplanationEvent

getConstraints

public ConstraintsInfo getConstraints()
Specified by:
getConstraints in interface ConstraintsProvider
Returns:
Returns the constraints.

setConstraints

public void setConstraints(ConstraintsInfo constraints)
Specified by:
setConstraints in interface ConstraintsProvider
Parameters:
constraints - The constraints to set.

getCauseList

public CauseListInfo getCauseList()
Specified by:
getCauseList in interface CauseListProvider
Returns:

setCauseList

public void setCauseList(CauseListInfo causeList)
Specified by:
setCauseList in interface CauseListProvider

processEnd

public void processEnd()
Specified by:
processEnd in interface EventListener

processInstruction

public void processInstruction(java.lang.String target,
                               java.lang.String data)
Specified by:
processInstruction in interface EventListener

processStart

public void processStart()
Specified by:
processStart in interface EventListener