Class SetEvtScheduler
- java.lang.Object
-
- org.chocosolver.solver.variables.impl.scheduler.SetEvtScheduler
-
- All Implemented Interfaces:
EvtScheduler<SetEventType>,IntIterator
public class SetEvtScheduler extends Object implements EvtScheduler<SetEventType>
Created by cprudhom on 17/06/15. Project: choco.
-
-
Constructor Summary
Constructors Constructor Description SetEvtScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Returns true if the iteration has more elements.voidinit(int mask)Initializes the scheduler with an event defined by 'mask'.intnext()Returns the next element in the iteration.voidremove()Removes from the underlying collection the last element returned by the getIterator (optional operation).intselect(int mask)
-
-
-
Method Detail
-
init
public void init(int mask)
Description copied from interface:EvtSchedulerInitializes the scheduler with an event defined by 'mask'.- Specified by:
initin interfaceEvtScheduler<SetEventType>- Parameters:
mask- event's mask received
-
select
public int select(int mask)
- Specified by:
selectin interfaceEvtScheduler<SetEventType>
-
hasNext
public boolean hasNext()
Description copied from interface:IntIteratorReturns 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:
hasNextin interfaceIntIterator- Returns:
- true if the getIterator has more elements.
-
next
public int next()
Description copied from interface:IntIteratorReturns the next element in the iteration.- Specified by:
nextin interfaceIntIterator- Returns:
- the next element in the iteration.
-
remove
public void remove()
Description copied from interface:IntIteratorRemoves 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:
removein interfaceIntIterator
-
-