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

Public Member Functions

boolean hasId ()
 
long getId ()
 
boolean hasSupply ()
 
long getSupply ()
 

Detailed Description

Definition at line 7 of file FlowNodeProtoOrBuilder.java.

Member Function Documentation

◆ getId()

long com.google.ortools.graph.FlowNodeProtoOrBuilder.getId ( )
The ids must be non-negative (>= 0). They should be dense for good
performance. Note that it is not mandatory to include nodes with no supply
in a FlowModelProto.

optional int64 id = 1;

Returns
The id.

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

◆ getSupply()

long com.google.ortools.graph.FlowNodeProtoOrBuilder.getSupply ( )
The supply can be positive or negative in which case it means demand.
The sum of the supplies over all nodes must always be 0.

optional int64 supply = 2 [default = 0];

Returns
The supply.

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

◆ hasId()

boolean com.google.ortools.graph.FlowNodeProtoOrBuilder.hasId ( )
The ids must be non-negative (>= 0). They should be dense for good
performance. Note that it is not mandatory to include nodes with no supply
in a FlowModelProto.

optional int64 id = 1;

Returns
Whether the id field is set.

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

◆ hasSupply()

boolean com.google.ortools.graph.FlowNodeProtoOrBuilder.hasSupply ( )
The supply can be positive or negative in which case it means demand.
The sum of the supplies over all nodes must always be 0.

optional int64 supply = 2 [default = 0];

Returns
Whether the supply field is set.

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


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