Package org.jacop.constraints.netflow
Class MultiVarHandler
java.lang.Object
org.jacop.constraints.netflow.MultiVarHandler
- All Implemented Interfaces:
VarHandler
- Version:
- 4.10
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(VarHandler handler) int
getPruningEvent
(Var variable) Retrieves the consistency pruning event of a handler variable that causes the handler to be reevaluated.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.
-
Field Details
-
variable
-
handlers
-
-
Constructor Details
-
MultiVarHandler
-
-
Method Details
-
add
-
getPruningEvent
Description copied from interface:VarHandler
Retrieves the consistency pruning event of a handler variable that causes the handler to be reevaluated. For instance, X- and W-variables will listen to BOUND events while S-variables typically consider ANY events.- Specified by:
getPruningEvent
in interfaceVarHandler
- Parameters:
variable
- a handler variable- Returns:
- the pruning event which causes reevaluation of the handler
-
listVariables
- Specified by:
listVariables
in interfaceVarHandler
- Returns:
- the list of variables handled by this handler
-
processEvent
Description copied from interface:VarHandler
Informs the handler that one of its variable has changed and asks the handler to update the state of the network accordingly.- Specified by:
processEvent
in interfaceVarHandler
- Parameters:
variable
- the variable that changednetwork
- the network
-