Package com.google.ortools.sat
Interface ReservoirConstraintProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ReservoirConstraintProto,ReservoirConstraintProto.Builder
public interface ReservoirConstraintProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and Type Method Description intgetActives(int index)literals.intgetActivesCount()literals.java.util.List<java.lang.Integer>getActivesList()literals.longgetDemands(int index)constants, can be negative.intgetDemandsCount()constants, can be negative.java.util.List<java.lang.Long>getDemandsList()constants, can be negative.longgetMaxLevel()int64 max_level = 2;longgetMinLevel()int64 min_level = 1;intgetTimes(int index)variables.intgetTimesCount()variables.java.util.List<java.lang.Integer>getTimesList()variables.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
-
getMinLevel
long getMinLevel()int64 min_level = 1;- Returns:
- The minLevel.
-
getMaxLevel
long getMaxLevel()int64 max_level = 2;- Returns:
- The maxLevel.
-
getTimesList
java.util.List<java.lang.Integer> getTimesList()variables.
repeated int32 times = 3;- Returns:
- A list containing the times.
-
getTimesCount
int getTimesCount()variables.
repeated int32 times = 3;- Returns:
- The count of times.
-
getTimes
int getTimes(int index)variables.
repeated int32 times = 3;- Parameters:
index- The index of the element to return.- Returns:
- The times at the given index.
-
getDemandsList
java.util.List<java.lang.Long> getDemandsList()constants, can be negative.
repeated int64 demands = 4;- Returns:
- A list containing the demands.
-
getDemandsCount
int getDemandsCount()constants, can be negative.
repeated int64 demands = 4;- Returns:
- The count of demands.
-
getDemands
long getDemands(int index)constants, can be negative.
repeated int64 demands = 4;- Parameters:
index- The index of the element to return.- Returns:
- The demands at the given index.
-
getActivesList
java.util.List<java.lang.Integer> getActivesList()literals.
repeated int32 actives = 5;- Returns:
- A list containing the actives.
-
getActivesCount
int getActivesCount()literals.
repeated int32 actives = 5;- Returns:
- The count of actives.
-
getActives
int getActives(int index)literals.
repeated int32 actives = 5;- Parameters:
index- The index of the element to return.- Returns:
- The actives at the given index.
-