public class AutomatonConstraint extends Constraint
This constraint allows adding transitions to the automaton constraint incrementally.
Constructor and Description |
---|
AutomatonConstraint(CpModelProto.Builder builder) |
Modifier and Type | Method and Description |
---|---|
AutomatonConstraint |
addTransition(int tail,
int head,
long label)
Adds a transitions to the automaton.
|
getBuilder, getIndex, onlyEnforceIf, onlyEnforceIf
public AutomatonConstraint(CpModelProto.Builder builder)
public AutomatonConstraint addTransition(int tail, int head, long label)
tail
- the tail of the transitionhead
- the head of the transitionlabel
- the label of the transitionCopyright © 2025. All rights reserved.