Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.CumulativeConstraintProto Class Reference
Inheritance diagram for com.google.ortools.sat.CumulativeConstraintProto:
com.google.ortools.sat.CumulativeConstraintProtoOrBuilder

Classes

class  Builder
 

Public Member Functions

boolean hasCapacity ()
 
com.google.ortools.sat.LinearExpressionProto getCapacity ()
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getCapacityOrBuilder ()
 
java.util.List< java.lang.Integer > getIntervalsList ()
 
int getIntervalsCount ()
 
int getIntervals (int index)
 
java.util.List< com.google.ortools.sat.LinearExpressionProtogetDemandsList ()
 
java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuildergetDemandsOrBuilderList ()
 
int getDemandsCount ()
 
com.google.ortools.sat.LinearExpressionProto getDemands (int index)
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getDemandsOrBuilder (int index)
 
final boolean isInitialized ()
 
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
int getSerializedSize ()
 
boolean equals (final java.lang.Object obj)
 
int hashCode ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
com.google.protobuf.Parser< CumulativeConstraintProtogetParserForType ()
 
com.google.ortools.sat.CumulativeConstraintProto getDefaultInstanceForType ()
 

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.CumulativeConstraintProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.CumulativeConstraintProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.sat.CumulativeConstraintProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.sat.CumulativeConstraintProto prototype)
 
static com.google.ortools.sat.CumulativeConstraintProto getDefaultInstance ()
 
static com.google.protobuf.Parser< CumulativeConstraintProtoparser ()
 

Static Public Attributes

static final int CAPACITY_FIELD_NUMBER = 1
 
static final int INTERVALS_FIELD_NUMBER = 2
 
static final int DEMANDS_FIELD_NUMBER = 3
 

Protected Member Functions

java.lang.Object newInstance (UnusedPrivateParameter unused)
 
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
 

Detailed Description

The sum of the demands of the intervals at each interval point cannot exceed
a capacity. Note that intervals are interpreted as [start, end) and as
such intervals like [2,3) and [3,4) do not overlap for the point of view of
this constraint. Moreover, intervals of size zero are ignored.

All demands must not contain any negative value in their domains. This is
checked at validation. The capacity can currently contains negative values,
but it will be propagated to >= 0 right away.

Protobuf type operations_research.sat.CumulativeConstraintProto

Definition at line 21 of file CumulativeConstraintProto.java.

Member Function Documentation

◆ equals()

boolean com.google.ortools.sat.CumulativeConstraintProto.equals ( final java.lang.Object obj)

Definition at line 238 of file CumulativeConstraintProto.java.

◆ getCapacity()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.CumulativeConstraintProto.getCapacity ( )

.operations_research.sat.LinearExpressionProto capacity = 1;

Returns
The capacity.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 71 of file CumulativeConstraintProto.java.

◆ getCapacityOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.CumulativeConstraintProto.getCapacityOrBuilder ( )

.operations_research.sat.LinearExpressionProto capacity = 1;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 78 of file CumulativeConstraintProto.java.

◆ getDefaultInstance()

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance ( )
static

Definition at line 1202 of file CumulativeConstraintProto.java.

◆ getDefaultInstanceForType()

com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstanceForType ( )

Definition at line 1238 of file CumulativeConstraintProto.java.

◆ getDemands()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.CumulativeConstraintProto.getDemands ( int index)
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 157 of file CumulativeConstraintProto.java.

◆ getDemandsCount()

int com.google.ortools.sat.CumulativeConstraintProto.getDemandsCount ( )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 146 of file CumulativeConstraintProto.java.

◆ getDemandsList()

java.util.List< com.google.ortools.sat.LinearExpressionProto > com.google.ortools.sat.CumulativeConstraintProto.getDemandsList ( )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 123 of file CumulativeConstraintProto.java.

◆ getDemandsOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.CumulativeConstraintProto.getDemandsOrBuilder ( int index)
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 168 of file CumulativeConstraintProto.java.

◆ getDemandsOrBuilderList()

java.util.List<? extends com.google.ortools.sat.LinearExpressionProtoOrBuilder > com.google.ortools.sat.CumulativeConstraintProto.getDemandsOrBuilderList ( )
Same size as intervals.

repeated .operations_research.sat.LinearExpressionProto demands = 3;

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 135 of file CumulativeConstraintProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.CumulativeConstraintProto.getDescriptor ( )
static

Definition at line 43 of file CumulativeConstraintProto.java.

◆ getIntervals()

int com.google.ortools.sat.CumulativeConstraintProto.getIntervals ( int index)

repeated int32 intervals = 2;

Parameters
indexThe index of the element to return.
Returns
The intervals at the given index.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 107 of file CumulativeConstraintProto.java.

◆ getIntervalsCount()

int com.google.ortools.sat.CumulativeConstraintProto.getIntervalsCount ( )

repeated int32 intervals = 2;

Returns
The count of intervals.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 99 of file CumulativeConstraintProto.java.

◆ getIntervalsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.CumulativeConstraintProto.getIntervalsList ( )

repeated int32 intervals = 2;

Returns
A list containing the intervals.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 92 of file CumulativeConstraintProto.java.

◆ getParserForType()

com.google.protobuf.Parser< CumulativeConstraintProto > com.google.ortools.sat.CumulativeConstraintProto.getParserForType ( )

Definition at line 1233 of file CumulativeConstraintProto.java.

◆ getSerializedSize()

int com.google.ortools.sat.CumulativeConstraintProto.getSerializedSize ( )

Definition at line 205 of file CumulativeConstraintProto.java.

◆ hasCapacity()

boolean com.google.ortools.sat.CumulativeConstraintProto.hasCapacity ( )

.operations_research.sat.LinearExpressionProto capacity = 1;

Returns
Whether the capacity field is set.

Implements com.google.ortools.sat.CumulativeConstraintProtoOrBuilder.

Definition at line 63 of file CumulativeConstraintProto.java.

◆ hashCode()

int com.google.ortools.sat.CumulativeConstraintProto.hashCode ( )

Definition at line 261 of file CumulativeConstraintProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessageV3.FieldAccessorTable com.google.ortools.sat.CumulativeConstraintProto.internalGetFieldAccessorTable ( )
protected

Definition at line 49 of file CumulativeConstraintProto.java.

◆ isInitialized()

final boolean com.google.ortools.sat.CumulativeConstraintProto.isInitialized ( )

Definition at line 175 of file CumulativeConstraintProto.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.sat.CumulativeConstraintProto.newBuilder ( )
static

Definition at line 358 of file CumulativeConstraintProto.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.sat.CumulativeConstraintProto.newBuilder ( com.google.ortools.sat.CumulativeConstraintProto prototype)
static

Definition at line 361 of file CumulativeConstraintProto.java.

◆ newBuilderForType() [1/2]

Builder com.google.ortools.sat.CumulativeConstraintProto.newBuilderForType ( )

Definition at line 357 of file CumulativeConstraintProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.sat.CumulativeConstraintProto.newBuilderForType ( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected

Definition at line 371 of file CumulativeConstraintProto.java.

◆ newInstance()

java.lang.Object com.google.ortools.sat.CumulativeConstraintProto.newInstance ( UnusedPrivateParameter unused)
protected

Definition at line 37 of file CumulativeConstraintProto.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 329 of file CumulativeConstraintProto.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 335 of file CumulativeConstraintProto.java.

◆ parseFrom() [1/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 306 of file CumulativeConstraintProto.java.

◆ parseFrom() [2/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 310 of file CumulativeConstraintProto.java.

◆ parseFrom() [3/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 295 of file CumulativeConstraintProto.java.

◆ parseFrom() [4/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 300 of file CumulativeConstraintProto.java.

◆ parseFrom() [5/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 342 of file CumulativeConstraintProto.java.

◆ parseFrom() [6/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 348 of file CumulativeConstraintProto.java.

◆ parseFrom() [7/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 316 of file CumulativeConstraintProto.java.

◆ parseFrom() [8/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 321 of file CumulativeConstraintProto.java.

◆ parseFrom() [9/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 284 of file CumulativeConstraintProto.java.

◆ parseFrom() [10/10]

static com.google.ortools.sat.CumulativeConstraintProto com.google.ortools.sat.CumulativeConstraintProto.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 289 of file CumulativeConstraintProto.java.

◆ parser()

static com.google.protobuf.Parser< CumulativeConstraintProto > com.google.ortools.sat.CumulativeConstraintProto.parser ( )
static

Definition at line 1228 of file CumulativeConstraintProto.java.

◆ toBuilder()

Builder com.google.ortools.sat.CumulativeConstraintProto.toBuilder ( )

Definition at line 365 of file CumulativeConstraintProto.java.

◆ writeTo()

void com.google.ortools.sat.CumulativeConstraintProto.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 185 of file CumulativeConstraintProto.java.

Member Data Documentation

◆ CAPACITY_FIELD_NUMBER

final int com.google.ortools.sat.CumulativeConstraintProto.CAPACITY_FIELD_NUMBER = 1
static

Definition at line 56 of file CumulativeConstraintProto.java.

◆ DEMANDS_FIELD_NUMBER

final int com.google.ortools.sat.CumulativeConstraintProto.DEMANDS_FIELD_NUMBER = 3
static

Definition at line 112 of file CumulativeConstraintProto.java.

◆ INTERVALS_FIELD_NUMBER

final int com.google.ortools.sat.CumulativeConstraintProto.INTERVALS_FIELD_NUMBER = 2
static

Definition at line 82 of file CumulativeConstraintProto.java.


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