Class AutomatonConstraint
java.lang.Object
com.google.ortools.sat.Constraint
com.google.ortools.sat.AutomatonConstraint
Specialized automaton constraint.
This constraint allows adding transitions to the automaton constraint incrementally.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTransition(int tail, int head, long label) Adds a transitions to the automaton.Methods inherited from class com.google.ortools.sat.Constraint
getBuilder, getIndex, onlyEnforceIf, onlyEnforceIf
-
Constructor Details
-
AutomatonConstraint
-
-
Method Details
-
addTransition
Adds a transitions to the automaton.- Parameters:
tail- the tail of the transitionhead- the head of the transitionlabel- the label of the transition- Returns:
- this constraint
-