fr.inria.oadymppac.solver
Class DefaultStage

java.lang.Object
  extended byfr.inria.oadymppac.solver.SolverElementImpl
      extended byfr.inria.oadymppac.solver.SolverMainElementImpl
          extended byfr.inria.oadymppac.solver.AbstractStage
              extended byfr.inria.oadymppac.solver.DefaultStage
All Implemented Interfaces:
ChronoProvider, DepthProvider, Indexable, SolverElement, SolverMainElement, SolverManagable, Stage, StateProvider

public class DefaultStage
extends AbstractStage
implements Stage

Author:
raf TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Field Summary
 
Fields inherited from interface fr.inria.oadymppac.solver.Stage
EVENT_TYPE
 
Constructor Summary
DefaultStage(Solver solver)
           
 
Method Summary
 void addEvent(StageEvent e)
           
 void addReference(Stage stage)
           
 void clearEvents()
           
 void clearReferences()
           
 int countEvents()
           
 int countReferences()
           
 java.lang.String getComment()
           
 java.lang.String getDetail()
           
 java.util.Collection getEvents()
           
 java.lang.String getIdentifier()
           
 java.lang.Object getKey()
           
 java.lang.String getLabel()
           
 java.lang.String getName()
           
 java.util.Collection getReferences()
           
 byte getSolverType()
           
 State getState()
           
 short getType()
           
 void removeEvent(StageEvent e)
           
 void removeReference(Stage stage)
           
 void setComment(java.lang.String comment)
           
 void setDetail(java.lang.String detail)
           
 void setEvents(java.util.Collection events)
           
 void setIdentifier(java.lang.String identifier)
           
 void setName(java.lang.String name)
           
 void setReferences(java.util.Collection references)
           
 void setState(State state)
           
 void setType(short type)
           
 java.lang.String toString()
           
 
Methods inherited from class fr.inria.oadymppac.solver.AbstractStage
getEventType, reset
 
Methods inherited from class fr.inria.oadymppac.solver.SolverMainElementImpl
getChrono, getContext, getDepth, getFile, getLine, getSolver, getTime, setChrono, setContext, setDepth, setFile, setLine, setSolver, setTime
 
Methods inherited from class fr.inria.oadymppac.solver.SolverElementImpl
getIndex, setIndex
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fr.inria.oadymppac.solver.SolverMainElement
getContext, getFile, getLine, getTime, setContext, setFile, setLine, setTime
 
Methods inherited from interface fr.inria.oadymppac.solver.SolverElement
getEventType
 
Methods inherited from interface fr.inria.oadymppac.utils.Indexable
getIndex, reset, setIndex
 
Methods inherited from interface fr.inria.oadymppac.solver.SolverManagable
getSolver, setSolver
 
Methods inherited from interface fr.inria.oadymppac.solver.DepthProvider
getDepth, setDepth
 
Methods inherited from interface fr.inria.oadymppac.solver.ChronoProvider
getChrono, setChrono
 

Constructor Detail

DefaultStage

public DefaultStage(Solver solver)
Parameters:
solver -
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Specified by:
getIdentifier in interface Stage
Overrides:
getIdentifier in class AbstractStage
Returns:
Returns the identifier.

setIdentifier

public void setIdentifier(java.lang.String identifier)
Specified by:
setIdentifier in interface Stage
Overrides:
setIdentifier in class AbstractStage
Parameters:
identifier - The identifier to set.

getName

public java.lang.String getName()
Specified by:
getName in interface Stage
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Stage
Parameters:
name - The name to set.

toString

public java.lang.String toString()
Overrides:
toString in class SolverMainElementImpl

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface SolverElement

getKey

public java.lang.Object getKey()
Specified by:
getKey in interface Indexable
Overrides:
getKey in class AbstractStage

getSolverType

public byte getSolverType()
Specified by:
getSolverType in interface SolverElement
Overrides:
getSolverType in class AbstractStage

getType

public short getType()
Returns:
Returns the type.

setType

public void setType(short type)
Parameters:
type - The type to set.

getState

public State getState()
Specified by:
getState in interface StateProvider
Returns:
Returns the state.

setState

public void setState(State state)
Specified by:
setState in interface StateProvider
Parameters:
state - The state to set.

getReferences

public java.util.Collection getReferences()
Specified by:
getReferences in interface Stage
Returns:
Returns the references.

getDetail

public java.lang.String getDetail()
Specified by:
getDetail in interface Stage
Returns:
Returns the detail.

setDetail

public void setDetail(java.lang.String detail)
Specified by:
setDetail in interface Stage
Parameters:
detail - The detail to set.

getComment

public java.lang.String getComment()
Specified by:
getComment in interface Stage
Returns:
Returns the comment.

setComment

public void setComment(java.lang.String comment)
Specified by:
setComment in interface Stage
Parameters:
comment - The comment to set.

getEvents

public java.util.Collection getEvents()
Specified by:
getEvents in interface Stage
Returns:
Returns the events.

setEvents

public void setEvents(java.util.Collection events)
Specified by:
setEvents in interface Stage
Parameters:
events - The events to set.

addEvent

public void addEvent(StageEvent e)
Specified by:
addEvent in interface Stage

addReference

public void addReference(Stage stage)
Specified by:
addReference in interface Stage

clearEvents

public void clearEvents()
Specified by:
clearEvents in interface Stage

clearReferences

public void clearReferences()
Specified by:
clearReferences in interface Stage

countEvents

public int countEvents()
Specified by:
countEvents in interface Stage

countReferences

public int countReferences()
Specified by:
countReferences in interface Stage

removeEvent

public void removeEvent(StageEvent e)
Specified by:
removeEvent in interface Stage

removeReference

public void removeReference(Stage stage)
Specified by:
removeReference in interface Stage

setReferences

public void setReferences(java.util.Collection references)
Specified by:
setReferences in interface Stage