Interface FlowArcProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
FlowArcProto
,FlowArcProto.Builder
@Generated
public interface FlowArcProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlong
Capacity of the arc.long
getHead()
optional int64 head = 2;
long
getTail()
A directed arc goes from a tail node to a head node.long
Cost of this arc per unit of flow.boolean
Capacity of the arc.boolean
hasHead()
optional int64 head = 2;
boolean
hasTail()
A directed arc goes from a tail node to a head node.boolean
Cost of this arc per unit of flow.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasTail
boolean 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.
-
getTail
long 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.
-
hasHead
boolean hasHead()optional int64 head = 2;
- Returns:
- Whether the head field is set.
-
getHead
long getHead()optional int64 head = 2;
- Returns:
- The head.
-
hasCapacity
boolean 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.
-
getCapacity
long 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.
-
hasUnitCost
boolean 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.
-
getUnitCost
long 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.
-