Java Reference

Java Reference

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.

Protobuf type

operations_research.sat.CumulativeConstraintProto

Definition at line 16 of file CumulativeConstraintProto.java.

Classes

class  Builder
 

Public Member Functions

.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields ()
 
.lang.Override int getCapacity ()
 int32 capacity = 1; More...
 
.lang.Override java.util.List< java.lang.Integer > getIntervalsList ()
 repeated int32 intervals = 2; More...
 
int getIntervalsCount ()
 repeated int32 intervals = 2; More...
 
int getIntervals (int index)
 repeated int32 intervals = 2; More...
 
.lang.Override java.util.List< java.lang.Integer > getDemandsList ()
 
int getDemandsCount ()
 
int getDemands (int index)
 
.lang.Override final boolean isInitialized ()
 
.lang.Override void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
.lang.Override int getSerializedSize ()
 
.lang.Override boolean equals (final java.lang.Object obj)
 
.lang.Override int hashCode ()
 
.lang.Override Builder newBuilderForType ()
 
.lang.Override Builder toBuilder ()
 
.lang.Override com.google.protobuf.Parser< CumulativeConstraintProtogetParserForType ()
 
.lang.Override 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

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

Member Function Documentation

◆ equals()

.lang.Override boolean equals ( final java.lang.Object  obj)

Definition at line 304 of file CumulativeConstraintProto.java.

◆ getCapacity()

.lang.Override int getCapacity ( )

int32 capacity = 1;

Returns
The capacity.

Implements CumulativeConstraintProtoOrBuilder.

Definition at line 153 of file CumulativeConstraintProto.java.

◆ getDefaultInstance()

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

Definition at line 863 of file CumulativeConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 888 of file CumulativeConstraintProto.java.

◆ getDemands()

int getDemands ( int  index)
Same size as intervals.

repeated int32 demands = 3;

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

Implements CumulativeConstraintProtoOrBuilder.

Definition at line 220 of file CumulativeConstraintProto.java.

◆ getDemandsCount()

int getDemandsCount ( )
Same size as intervals.

repeated int32 demands = 3;

Returns
The count of demands.

Implements CumulativeConstraintProtoOrBuilder.

Definition at line 208 of file CumulativeConstraintProto.java.

◆ getDemandsList()

.lang.Override java.util.List<java.lang.Integer> getDemandsList ( )
Same size as intervals.

repeated int32 demands = 3;

Returns
A list containing the demands.

Implements CumulativeConstraintProtoOrBuilder.

Definition at line 197 of file CumulativeConstraintProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ( )
static

Definition at line 134 of file CumulativeConstraintProto.java.

◆ getIntervals()

int getIntervals ( int  index)

repeated int32 intervals = 2;

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

Implements CumulativeConstraintProtoOrBuilder.

Definition at line 180 of file CumulativeConstraintProto.java.

◆ getIntervalsCount()

int getIntervalsCount ( )

repeated int32 intervals = 2;

Returns
The count of intervals.

Implements CumulativeConstraintProtoOrBuilder.

Definition at line 172 of file CumulativeConstraintProto.java.

◆ getIntervalsList()

.lang.Override java.util.List<java.lang.Integer> getIntervalsList ( )

repeated int32 intervals = 2;

Returns
A list containing the intervals.

Implements CumulativeConstraintProtoOrBuilder.

Definition at line 165 of file CumulativeConstraintProto.java.

◆ getParserForType()

.lang.Override com.google.protobuf.Parser<CumulativeConstraintProto> getParserForType ( )

Definition at line 883 of file CumulativeConstraintProto.java.

◆ getSerializedSize()

.lang.Override int getSerializedSize ( )

Definition at line 261 of file CumulativeConstraintProto.java.

◆ getUnknownFields()

.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields ( )

Definition at line 39 of file CumulativeConstraintProto.java.

◆ hashCode()

.lang.Override int hashCode ( )

Definition at line 324 of file CumulativeConstraintProto.java.

◆ internalGetFieldAccessorTable()

.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ( )
protected

Definition at line 140 of file CumulativeConstraintProto.java.

◆ isInitialized()

.lang.Override final boolean isInitialized ( )

Definition at line 227 of file CumulativeConstraintProto.java.

◆ newBuilder() [1/2]

static Builder newBuilder ( )
static

Definition at line 417 of file CumulativeConstraintProto.java.

◆ newBuilder() [2/2]

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

Definition at line 420 of file CumulativeConstraintProto.java.

◆ newBuilderForType() [1/2]

.lang.Override Builder newBuilderForType ( )

Definition at line 416 of file CumulativeConstraintProto.java.

◆ newBuilderForType() [2/2]

.lang.Override Builder newBuilderForType ( com.google.protobuf.GeneratedMessageV3.BuilderParent  parent)
protected

Definition at line 430 of file CumulativeConstraintProto.java.

◆ newInstance()

.lang.Override java.lang.Object newInstance ( UnusedPrivateParameter  unused)
protected

Definition at line 32 of file CumulativeConstraintProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 389 of file CumulativeConstraintProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 394 of file CumulativeConstraintProto.java.

◆ parseFrom() [1/10]

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

Definition at line 367 of file CumulativeConstraintProto.java.

◆ parseFrom() [2/10]

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

Definition at line 371 of file CumulativeConstraintProto.java.

◆ parseFrom() [3/10]

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

Definition at line 356 of file CumulativeConstraintProto.java.

◆ parseFrom() [4/10]

static 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 361 of file CumulativeConstraintProto.java.

◆ parseFrom() [5/10]

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

Definition at line 401 of file CumulativeConstraintProto.java.

◆ parseFrom() [6/10]

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

Definition at line 407 of file CumulativeConstraintProto.java.

◆ parseFrom() [7/10]

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

Definition at line 377 of file CumulativeConstraintProto.java.

◆ parseFrom() [8/10]

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

Definition at line 382 of file CumulativeConstraintProto.java.

◆ parseFrom() [9/10]

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

Definition at line 345 of file CumulativeConstraintProto.java.

◆ parseFrom() [10/10]

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

Definition at line 350 of file CumulativeConstraintProto.java.

◆ parser()

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

Definition at line 878 of file CumulativeConstraintProto.java.

◆ toBuilder()

.lang.Override Builder toBuilder ( )

Definition at line 424 of file CumulativeConstraintProto.java.

◆ writeTo()

.lang.Override void writeTo ( com.google.protobuf.CodedOutputStream  output) throws java.io.IOException

Definition at line 237 of file CumulativeConstraintProto.java.

Member Data Documentation

◆ CAPACITY_FIELD_NUMBER

final int CAPACITY_FIELD_NUMBER = 1
static

Definition at line 146 of file CumulativeConstraintProto.java.

◆ DEMANDS_FIELD_NUMBER

final int DEMANDS_FIELD_NUMBER = 3
static

Definition at line 185 of file CumulativeConstraintProto.java.

◆ INTERVALS_FIELD_NUMBER

final int INTERVALS_FIELD_NUMBER = 2
static

Definition at line 157 of file CumulativeConstraintProto.java.


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