Package com.google.ortools.sat
Interface IntervalConstraintProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
IntervalConstraintProto,IntervalConstraintProto.Builder
public interface IntervalConstraintProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and Type Method Description intgetEnd()int32 end = 2;LinearExpressionProtogetEndView().operations_research.sat.LinearExpressionProto end_view = 5;LinearExpressionProtoOrBuildergetEndViewOrBuilder().operations_research.sat.LinearExpressionProto end_view = 5;intgetSize()int32 size = 3;LinearExpressionProtogetSizeView().operations_research.sat.LinearExpressionProto size_view = 6;LinearExpressionProtoOrBuildergetSizeViewOrBuilder().operations_research.sat.LinearExpressionProto size_view = 6;intgetStart()int32 start = 1;LinearExpressionProtogetStartView()EXPERIMENTAL: This will become the new way to specify an interval.LinearExpressionProtoOrBuildergetStartViewOrBuilder()EXPERIMENTAL: This will become the new way to specify an interval.booleanhasEndView().operations_research.sat.LinearExpressionProto end_view = 5;booleanhasSizeView().operations_research.sat.LinearExpressionProto size_view = 6;booleanhasStartView()EXPERIMENTAL: This will become the new way to specify an interval.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getStart
int getStart()int32 start = 1;- Returns:
- The start.
-
getEnd
int getEnd()int32 end = 2;- Returns:
- The end.
-
getSize
int getSize()int32 size = 3;- Returns:
- The size.
-
hasStartView
boolean hasStartView()EXPERIMENTAL: This will become the new way to specify an interval. Depending on the parameters, the presolve will convert the old way to the new way. Do not forget to add an associated linear constraint if you use this directly. If any of this field is set, then all must be set and the ones above will be ignored. IMPORTANT: For now, this constraint do not enforce any relations on the view, and a linear constraint must be added together with this to enforce enforcement => start_view + size_view == end_view. An enforcement => size_view >=0 might also be needed. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.
.operations_research.sat.LinearExpressionProto start_view = 4;- Returns:
- Whether the startView field is set.
-
getStartView
LinearExpressionProto getStartView()EXPERIMENTAL: This will become the new way to specify an interval. Depending on the parameters, the presolve will convert the old way to the new way. Do not forget to add an associated linear constraint if you use this directly. If any of this field is set, then all must be set and the ones above will be ignored. IMPORTANT: For now, this constraint do not enforce any relations on the view, and a linear constraint must be added together with this to enforce enforcement => start_view + size_view == end_view. An enforcement => size_view >=0 might also be needed. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.
.operations_research.sat.LinearExpressionProto start_view = 4;- Returns:
- The startView.
-
getStartViewOrBuilder
LinearExpressionProtoOrBuilder getStartViewOrBuilder()EXPERIMENTAL: This will become the new way to specify an interval. Depending on the parameters, the presolve will convert the old way to the new way. Do not forget to add an associated linear constraint if you use this directly. If any of this field is set, then all must be set and the ones above will be ignored. IMPORTANT: For now, this constraint do not enforce any relations on the view, and a linear constraint must be added together with this to enforce enforcement => start_view + size_view == end_view. An enforcement => size_view >=0 might also be needed. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.
.operations_research.sat.LinearExpressionProto start_view = 4; -
hasEndView
boolean hasEndView().operations_research.sat.LinearExpressionProto end_view = 5;- Returns:
- Whether the endView field is set.
-
getEndView
LinearExpressionProto getEndView().operations_research.sat.LinearExpressionProto end_view = 5;- Returns:
- The endView.
-
getEndViewOrBuilder
LinearExpressionProtoOrBuilder getEndViewOrBuilder().operations_research.sat.LinearExpressionProto end_view = 5; -
hasSizeView
boolean hasSizeView().operations_research.sat.LinearExpressionProto size_view = 6;- Returns:
- Whether the sizeView field is set.
-
getSizeView
LinearExpressionProto getSizeView().operations_research.sat.LinearExpressionProto size_view = 6;- Returns:
- The sizeView.
-
getSizeViewOrBuilder
LinearExpressionProtoOrBuilder getSizeViewOrBuilder().operations_research.sat.LinearExpressionProto size_view = 6;
-