Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.Graph.FlowArcProto Class Referencesealed
Inheritance diagram for Google.OrTools.Graph.FlowArcProto:

Public Member Functions

 FlowArcProto ()
 
 FlowArcProto (FlowArcProto other)
 
FlowArcProto Clone ()
 
void ClearTail ()
 Clears the value of the "tail" field.
 
void ClearHead ()
 Clears the value of the "head" field.
 
void ClearCapacity ()
 Clears the value of the "capacity" field.
 
void ClearUnitCost ()
 Clears the value of the "unit_cost" field.
 
override bool Equals (object other)
 
bool Equals (FlowArcProto other)
 
override int GetHashCode ()
 
override string ToString ()
 
void WriteTo (pb::CodedOutputStream output)
 
int CalculateSize ()
 
void MergeFrom (FlowArcProto other)
 
void MergeFrom (pb::CodedInputStream input)
 

Static Public Attributes

const int TailFieldNumber = 1
 Field number for the "tail" field.
 
const int HeadFieldNumber = 2
 Field number for the "head" field.
 
const int CapacityFieldNumber = 3
 Field number for the "capacity" field.
 
const int UnitCostFieldNumber = 4
 Field number for the "unit_cost" field.
 

Properties

static pb::MessageParser< FlowArcProtoParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
long Tail [get, set]
 A directed arc goes from a tail node to a head node. Node ids must be non-negative (>= 0).
 
bool HasTail [get]
 Gets whether the "tail" field is set.
 
long Head [get, set]
 
bool HasHead [get]
 Gets whether the "head" field is set.
 
long Capacity [get, set]
 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.
 
bool HasCapacity [get]
 Gets whether the "capacity" field is set.
 
long UnitCost [get, set]
 Cost of this arc per unit of flow.
 
bool HasUnitCost [get]
 Gets whether the "unit_cost" field is set.
 

Detailed Description

Definition at line 52 of file FlowProblem.pb.cs.

Constructor & Destructor Documentation

◆ FlowArcProto() [1/2]

Google.OrTools.Graph.FlowArcProto.FlowArcProto ( )
inline

Definition at line 78 of file FlowProblem.pb.cs.

◆ FlowArcProto() [2/2]

Google.OrTools.Graph.FlowArcProto.FlowArcProto ( FlowArcProto other)
inline

Definition at line 86 of file FlowProblem.pb.cs.

Member Function Documentation

◆ CalculateSize()

int Google.OrTools.Graph.FlowArcProto.CalculateSize ( )
inline

Definition at line 319 of file FlowProblem.pb.cs.

◆ ClearCapacity()

void Google.OrTools.Graph.FlowArcProto.ClearCapacity ( )
inline

Clears the value of the "capacity" field.

Definition at line 186 of file FlowProblem.pb.cs.

◆ ClearHead()

void Google.OrTools.Graph.FlowArcProto.ClearHead ( )
inline

Clears the value of the "head" field.

Definition at line 155 of file FlowProblem.pb.cs.

◆ ClearTail()

void Google.OrTools.Graph.FlowArcProto.ClearTail ( )
inline

Clears the value of the "tail" field.

Definition at line 128 of file FlowProblem.pb.cs.

◆ ClearUnitCost()

void Google.OrTools.Graph.FlowArcProto.ClearUnitCost ( )
inline

Clears the value of the "unit_cost" field.

Definition at line 217 of file FlowProblem.pb.cs.

◆ Clone()

FlowArcProto Google.OrTools.Graph.FlowArcProto.Clone ( )
inline

Definition at line 97 of file FlowProblem.pb.cs.

◆ Equals() [1/2]

bool Google.OrTools.Graph.FlowArcProto.Equals ( FlowArcProto other)
inline

Definition at line 229 of file FlowProblem.pb.cs.

◆ Equals() [2/2]

override bool Google.OrTools.Graph.FlowArcProto.Equals ( object other)
inline

Definition at line 223 of file FlowProblem.pb.cs.

◆ GetHashCode()

override int Google.OrTools.Graph.FlowArcProto.GetHashCode ( )
inline

Definition at line 245 of file FlowProblem.pb.cs.

◆ MergeFrom() [1/2]

void Google.OrTools.Graph.FlowArcProto.MergeFrom ( FlowArcProto other)
inline

Definition at line 341 of file FlowProblem.pb.cs.

◆ MergeFrom() [2/2]

void Google.OrTools.Graph.FlowArcProto.MergeFrom ( pb.CodedInputStream input)
inline

Definition at line 362 of file FlowProblem.pb.cs.

◆ ToString()

override string Google.OrTools.Graph.FlowArcProto.ToString ( )
inline

Definition at line 259 of file FlowProblem.pb.cs.

◆ WriteTo()

void Google.OrTools.Graph.FlowArcProto.WriteTo ( pb.CodedOutputStream output)
inline

Definition at line 265 of file FlowProblem.pb.cs.

Member Data Documentation

◆ CapacityFieldNumber

const int Google.OrTools.Graph.FlowArcProto.CapacityFieldNumber = 3
static

Field number for the "capacity" field.

Definition at line 160 of file FlowProblem.pb.cs.

◆ HeadFieldNumber

const int Google.OrTools.Graph.FlowArcProto.HeadFieldNumber = 2
static

Field number for the "head" field.

Definition at line 133 of file FlowProblem.pb.cs.

◆ TailFieldNumber

const int Google.OrTools.Graph.FlowArcProto.TailFieldNumber = 1
static

Field number for the "tail" field.

Definition at line 102 of file FlowProblem.pb.cs.

◆ UnitCostFieldNumber

const int Google.OrTools.Graph.FlowArcProto.UnitCostFieldNumber = 4
static

Field number for the "unit_cost" field.

Definition at line 191 of file FlowProblem.pb.cs.

Property Documentation

◆ Capacity

long Google.OrTools.Graph.FlowArcProto.Capacity
getset

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.

Definition at line 170 of file FlowProblem.pb.cs.

◆ Descriptor

pbr.MessageDescriptor Google.OrTools.Graph.FlowArcProto.Descriptor
staticget

Definition at line 66 of file FlowProblem.pb.cs.

◆ HasCapacity

bool Google.OrTools.Graph.FlowArcProto.HasCapacity
get

Gets whether the "capacity" field is set.

Definition at line 180 of file FlowProblem.pb.cs.

◆ HasHead

bool Google.OrTools.Graph.FlowArcProto.HasHead
get

Gets whether the "head" field is set.

Definition at line 149 of file FlowProblem.pb.cs.

◆ HasTail

bool Google.OrTools.Graph.FlowArcProto.HasTail
get

Gets whether the "tail" field is set.

Definition at line 122 of file FlowProblem.pb.cs.

◆ HasUnitCost

bool Google.OrTools.Graph.FlowArcProto.HasUnitCost
get

Gets whether the "unit_cost" field is set.

Definition at line 211 of file FlowProblem.pb.cs.

◆ Head

long Google.OrTools.Graph.FlowArcProto.Head
getset

Definition at line 139 of file FlowProblem.pb.cs.

◆ Parser

pb.MessageParser<FlowArcProto> Google.OrTools.Graph.FlowArcProto.Parser
staticget

Definition at line 62 of file FlowProblem.pb.cs.

◆ Tail

long Google.OrTools.Graph.FlowArcProto.Tail
getset

A directed arc goes from a tail node to a head node. Node ids must be non-negative (>= 0).

Definition at line 112 of file FlowProblem.pb.cs.

◆ UnitCost

long Google.OrTools.Graph.FlowArcProto.UnitCost
getset

Cost of this arc per unit of flow.

Note
it can take any positive, negative or null value.

Definition at line 201 of file FlowProblem.pb.cs.


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