Class IncrementalConstraintIDGenerator
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.creation.IncrementalConstraintIDGenerator
- All Implemented Interfaces:
ConstraintIDGenerator<LogicConstraintWithoutIDSpec>
public class IncrementalConstraintIDGenerator
extends Object
implements ConstraintIDGenerator<LogicConstraintWithoutIDSpec>
Incremental strategy for obtaining the IDs of newly created logic constraints.
It will return identifiers starting from a given start (1 by default).
E.g.: 1, 2, 3, ...
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
IncrementalConstraintIDGenerator
public IncrementalConstraintIDGenerator() -
IncrementalConstraintIDGenerator
public IncrementalConstraintIDGenerator(int start)
-
-
Method Details
-
newConstraintID
- Specified by:
newConstraintID
in interfaceConstraintIDGenerator<LogicConstraintWithoutIDSpec>
-
newConstraintID
-