Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.graph.FlowArcProtoOrBuilder Interface Reference
Inheritance diagram for com.google.ortools.graph.FlowArcProtoOrBuilder:
com.google.ortools.graph.FlowArcProto com.google.ortools.graph.FlowArcProto.Builder

Public Member Functions

boolean hasTail ()
 
long getTail ()
 
boolean hasHead ()
 
long getHead ()
 
boolean hasCapacity ()
 
long getCapacity ()
 
boolean hasUnitCost ()
 
long getUnitCost ()
 

Detailed Description

Definition at line 7 of file FlowArcProtoOrBuilder.java.

Member Function Documentation

◆ getCapacity()

long com.google.ortools.graph.FlowArcProtoOrBuilder.getCapacity ( )
Capacity of the arc. Must be non-negative (>= 0). If the capacity is zero,
it is equivalent to not including the arc in the FlowModelProto.

optional int64 capacity = 3 [default = 1];

Returns
The capacity.

Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.

◆ getHead()

long com.google.ortools.graph.FlowArcProtoOrBuilder.getHead ( )

optional int64 head = 2;

Returns
The head.

Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.

◆ getTail()

long com.google.ortools.graph.FlowArcProtoOrBuilder.getTail ( )
A directed arc goes from a tail node to a head node.
Node ids must be non-negative (>= 0).

optional int64 tail = 1;

Returns
The tail.

Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.

◆ getUnitCost()

long com.google.ortools.graph.FlowArcProtoOrBuilder.getUnitCost ( )
Cost of this arc per unit of flow.
Note that it can take any positive, negative or null value.

optional int64 unit_cost = 4 [default = 0];

Returns
The unitCost.

Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.

◆ hasCapacity()

boolean com.google.ortools.graph.FlowArcProtoOrBuilder.hasCapacity ( )
Capacity of the arc. Must be non-negative (>= 0). If the capacity is zero,
it is equivalent to not including the arc in the FlowModelProto.

optional int64 capacity = 3 [default = 1];

Returns
Whether the capacity field is set.

Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.

◆ hasHead()

boolean com.google.ortools.graph.FlowArcProtoOrBuilder.hasHead ( )

optional int64 head = 2;

Returns
Whether the head field is set.

Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.

◆ hasTail()

boolean com.google.ortools.graph.FlowArcProtoOrBuilder.hasTail ( )
A directed arc goes from a tail node to a head node.
Node ids must be non-negative (>= 0).

optional int64 tail = 1;

Returns
Whether the tail field is set.

Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.

◆ hasUnitCost()

boolean com.google.ortools.graph.FlowArcProtoOrBuilder.hasUnitCost ( )
Cost of this arc per unit of flow.
Note that it can take any positive, negative or null value.

optional int64 unit_cost = 4 [default = 0];

Returns
Whether the unitCost field is set.

Implemented in com.google.ortools.graph.FlowArcProto.Builder, and com.google.ortools.graph.FlowArcProto.


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