Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder Interface Reference
Inheritance diagram for com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder:
com.google.ortools.algorithms.SetCoverProto.Subset com.google.ortools.algorithms.SetCoverProto.Subset.Builder

Public Member Functions

boolean hasCost ()
 
double getCost ()
 
java.util.List< java.lang.Integer > getElementList ()
 
int getElementCount ()
 
int getElement (int index)
 

Detailed Description

Definition at line 44 of file SetCoverProto.java.

Member Function Documentation

◆ getCost()

double com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.getCost ( )
The cost for using the given subset.

optional double cost = 1;

Returns
The cost.

Implemented in com.google.ortools.algorithms.SetCoverProto.Subset, and com.google.ortools.algorithms.SetCoverProto.Subset.Builder.

◆ getElement()

int com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.getElement ( int index)
The list of elements in the subset.

repeated int32 element = 2 [packed = true];

Parameters
indexThe index of the element to return.
Returns
The element at the given index.

Implemented in com.google.ortools.algorithms.SetCoverProto.Subset, and com.google.ortools.algorithms.SetCoverProto.Subset.Builder.

◆ getElementCount()

int com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.getElementCount ( )
The list of elements in the subset.

repeated int32 element = 2 [packed = true];

Returns
The count of element.

Implemented in com.google.ortools.algorithms.SetCoverProto.Subset, and com.google.ortools.algorithms.SetCoverProto.Subset.Builder.

◆ getElementList()

java.util.List< java.lang.Integer > com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.getElementList ( )
The list of elements in the subset.

repeated int32 element = 2 [packed = true];

Returns
A list containing the element.

Implemented in com.google.ortools.algorithms.SetCoverProto.Subset, and com.google.ortools.algorithms.SetCoverProto.Subset.Builder.

◆ hasCost()

boolean com.google.ortools.algorithms.SetCoverProto.SubsetOrBuilder.hasCost ( )
The cost for using the given subset.

optional double cost = 1;

Returns
Whether the cost field is set.

Implemented in com.google.ortools.algorithms.SetCoverProto.Subset, and com.google.ortools.algorithms.SetCoverProto.Subset.Builder.


The documentation for this interface was generated from the following file: