Google OR-Tools v9.9
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, and com.google.ortools.graph.FlowArcProto.Builder.

◆ getHead()

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

optional int64 head = 2;

Returns
The head.

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

◆ 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, and com.google.ortools.graph.FlowArcProto.Builder.

◆ 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, and com.google.ortools.graph.FlowArcProto.Builder.

◆ 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, and com.google.ortools.graph.FlowArcProto.Builder.

◆ 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, and com.google.ortools.graph.FlowArcProto.Builder.

◆ 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, and com.google.ortools.graph.FlowArcProto.Builder.

◆ 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, and com.google.ortools.graph.FlowArcProto.Builder.


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