public class MultiVarHandler extends Object implements VarHandler
Constructor and Description |
---|
MultiVarHandler(IntVar variable,
VarHandler... handlers) |
Modifier and Type | Method and Description |
---|---|
void |
add(VarHandler handler) |
int |
getPruningEvent(Var variable)
Retrieves the consistency pruning event of a handler variable that causes
the handler to be reevaluated.
|
List<IntVar> |
listVariables() |
void |
processEvent(IntVar variable,
MutableNetwork network)
Informs the handler that one of its variable has changed and asks the
handler to update the state of the network accordingly.
|
public MultiVarHandler(IntVar variable, VarHandler... handlers)
public void add(VarHandler handler)
public int getPruningEvent(Var variable)
VarHandler
getPruningEvent
in interface VarHandler
variable
- a handler variablepublic List<IntVar> listVariables()
listVariables
in interface VarHandler
public void processEvent(IntVar variable, MutableNetwork network)
VarHandler
processEvent
in interface VarHandler
variable
- the variable that changednetwork
- the networkCopyright © 2022. All rights reserved.