fr.inria.oadymppac.solver
Class DefaultStage
java.lang.Object
fr.inria.oadymppac.solver.SolverElementImpl
fr.inria.oadymppac.solver.SolverMainElementImpl
fr.inria.oadymppac.solver.AbstractStage
fr.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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultStage
public DefaultStage(Solver solver)
- Parameters:
solver
-
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