Module org.chocosolver
Class BoolEvtScheduler
- java.lang.Object
-
- org.chocosolver.solver.variables.impl.scheduler.BoolEvtScheduler
-
- All Implemented Interfaces:
EvtScheduler<IntEventType>
,IntIterator
public class BoolEvtScheduler extends Object implements EvtScheduler<IntEventType>
Created by cprudhom on 17/06/15. Project: choco.
-
-
Constructor Summary
Constructors Constructor Description BoolEvtScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Returns true if the iteration has more elements.void
init(int mask)
Initializes the scheduler with an event defined by 'mask'.int
next()
Returns the next element in the iteration.void
remove()
Removes from the underlying collection the last element returned by the getIterator (optional operation).int
select(int mask)
-
-
-
Method Detail
-
init
public void init(int mask)
Description copied from interface:EvtScheduler
Initializes the scheduler with an event defined by 'mask'.- Specified by:
init
in interfaceEvtScheduler<IntEventType>
- Parameters:
mask
- event's mask received
-
select
public int select(int mask)
- Specified by:
select
in interfaceEvtScheduler<IntEventType>
-
hasNext
public boolean hasNext()
Description copied from interface:IntIterator
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)- Specified by:
hasNext
in interfaceIntIterator
- Returns:
- true if the getIterator has more elements.
-
next
public int next()
Description copied from interface:IntIterator
Returns the next element in the iteration.- Specified by:
next
in interfaceIntIterator
- Returns:
- the next element in the iteration.
-
remove
public void remove()
Description copied from interface:IntIterator
Removes from the underlying collection the last element returned by the getIterator (optional operation). This method can be called only once per call to next. The behavior of an getIterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method.- Specified by:
remove
in interfaceIntIterator
-
-