Package com.google.ortools.algorithms
Interface SetCoverProto.SubsetOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SetCoverProto.Subset,SetCoverProto.Subset.Builder
- Enclosing class:
- SetCoverProto
public static interface SetCoverProto.SubsetOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetCost()The cost for using the given subset.intgetElement(int index) The list of elements in the subset.intThe list of elements in the subset.The list of elements in the subset.booleanhasCost()The cost for using the given subset.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
-
hasCost
boolean hasCost()The cost for using the given subset.
optional double cost = 1;- Returns:
- Whether the cost field is set.
-
getCost
double getCost()The cost for using the given subset.
optional double cost = 1;- Returns:
- The cost.
-
getElementList
The list of elements in the subset.
repeated int32 element = 2 [packed = true];- Returns:
- A list containing the element.
-
getElementCount
int getElementCount()The list of elements in the subset.
repeated int32 element = 2 [packed = true];- Returns:
- The count of element.
-
getElement
int getElement(int index) The list of elements in the subset.
repeated int32 element = 2 [packed = true];- Parameters:
index- The index of the element to return.- Returns:
- The element at the given index.
-