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

Classes

class  Builder
 

Public Member Functions

boolean hasStart ()
 
com.google.ortools.sat.LinearExpressionProto getStart ()
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getStartOrBuilder ()
 
boolean hasEnd ()
 
com.google.ortools.sat.LinearExpressionProto getEnd ()
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getEndOrBuilder ()
 
boolean hasSize ()
 
com.google.ortools.sat.LinearExpressionProto getSize ()
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getSizeOrBuilder ()
 
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< IntervalConstraintProtogetParserForType ()
 
com.google.ortools.sat.IntervalConstraintProto getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.sat.IntervalConstraintProtoOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.sat.IntervalConstraintProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.IntervalConstraintProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.IntervalConstraintProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.IntervalConstraintProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.IntervalConstraintProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.IntervalConstraintProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.IntervalConstraintProto parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.IntervalConstraintProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.IntervalConstraintProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.IntervalConstraintProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.IntervalConstraintProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.sat.IntervalConstraintProto 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.IntervalConstraintProto prototype)
 
static com.google.ortools.sat.IntervalConstraintProto getDefaultInstance ()
 
static com.google.protobuf.Parser< IntervalConstraintProtoparser ()
 

Static Public Attributes

static final int START_FIELD_NUMBER = 4
 
static final int END_FIELD_NUMBER = 5
 
static final int SIZE_FIELD_NUMBER = 6
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)
 

Detailed Description

This is not really a constraint. It is there so it can be referred by other
constraints using this "interval" concept.

IMPORTANT: For now, this constraint do not enforce any relations on the
components, and it is up to the client to add in the model:
- enforcement => start + size == end.
- enforcement => size >= 0  // Only needed if size is not already >= 0.

IMPORTANT: For now, we just support affine relation. We could easily
create an intermediate variable to support full linear expression, but this
isn't done currently.

Protobuf type operations_research.sat.IntervalConstraintProto

Definition at line 24 of file IntervalConstraintProto.java.

Member Function Documentation

◆ equals()

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

Definition at line 187 of file IntervalConstraintProto.java.

◆ getDefaultInstance()

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

Definition at line 914 of file IntervalConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 950 of file IntervalConstraintProto.java.

◆ getDescriptor()

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

Definition at line 46 of file IntervalConstraintProto.java.

◆ getEnd()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.IntervalConstraintProto.getEnd ( )

.operations_research.sat.LinearExpressionProto end = 5;

Returns
The end.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 100 of file IntervalConstraintProto.java.

◆ getEndOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.IntervalConstraintProto.getEndOrBuilder ( )

.operations_research.sat.LinearExpressionProto end = 5;

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 107 of file IntervalConstraintProto.java.

◆ getParserForType()

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

Definition at line 945 of file IntervalConstraintProto.java.

◆ getSerializedSize()

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

Definition at line 164 of file IntervalConstraintProto.java.

◆ getSize()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.IntervalConstraintProto.getSize ( )

.operations_research.sat.LinearExpressionProto size = 6;

Returns
The size.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 126 of file IntervalConstraintProto.java.

◆ getSizeOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.IntervalConstraintProto.getSizeOrBuilder ( )

.operations_research.sat.LinearExpressionProto size = 6;

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 133 of file IntervalConstraintProto.java.

◆ getStart()

com.google.ortools.sat.LinearExpressionProto com.google.ortools.sat.IntervalConstraintProto.getStart ( )

.operations_research.sat.LinearExpressionProto start = 4;

Returns
The start.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 74 of file IntervalConstraintProto.java.

◆ getStartOrBuilder()

com.google.ortools.sat.LinearExpressionProtoOrBuilder com.google.ortools.sat.IntervalConstraintProto.getStartOrBuilder ( )

.operations_research.sat.LinearExpressionProto start = 4;

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 81 of file IntervalConstraintProto.java.

◆ hasEnd()

boolean com.google.ortools.sat.IntervalConstraintProto.hasEnd ( )

.operations_research.sat.LinearExpressionProto end = 5;

Returns
Whether the end field is set.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 92 of file IntervalConstraintProto.java.

◆ hashCode()

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

Definition at line 216 of file IntervalConstraintProto.java.

◆ hasSize()

boolean com.google.ortools.sat.IntervalConstraintProto.hasSize ( )

.operations_research.sat.LinearExpressionProto size = 6;

Returns
Whether the size field is set.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 118 of file IntervalConstraintProto.java.

◆ hasStart()

boolean com.google.ortools.sat.IntervalConstraintProto.hasStart ( )

.operations_research.sat.LinearExpressionProto start = 4;

Returns
Whether the start field is set.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 66 of file IntervalConstraintProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.sat.IntervalConstraintProto.internalGetFieldAccessorTable ( )
protected

Definition at line 52 of file IntervalConstraintProto.java.

◆ isInitialized()

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

Definition at line 139 of file IntervalConstraintProto.java.

◆ newBuilder() [1/2]

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

Definition at line 313 of file IntervalConstraintProto.java.

◆ newBuilder() [2/2]

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

Definition at line 316 of file IntervalConstraintProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 312 of file IntervalConstraintProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.sat.IntervalConstraintProto.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 326 of file IntervalConstraintProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 284 of file IntervalConstraintProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 290 of file IntervalConstraintProto.java.

◆ parseFrom() [1/10]

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

Definition at line 261 of file IntervalConstraintProto.java.

◆ parseFrom() [2/10]

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

Definition at line 265 of file IntervalConstraintProto.java.

◆ parseFrom() [3/10]

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

Definition at line 250 of file IntervalConstraintProto.java.

◆ parseFrom() [4/10]

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

Definition at line 255 of file IntervalConstraintProto.java.

◆ parseFrom() [5/10]

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

Definition at line 297 of file IntervalConstraintProto.java.

◆ parseFrom() [6/10]

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

Definition at line 303 of file IntervalConstraintProto.java.

◆ parseFrom() [7/10]

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

Definition at line 271 of file IntervalConstraintProto.java.

◆ parseFrom() [8/10]

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

Definition at line 276 of file IntervalConstraintProto.java.

◆ parseFrom() [9/10]

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

Definition at line 239 of file IntervalConstraintProto.java.

◆ parseFrom() [10/10]

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

Definition at line 244 of file IntervalConstraintProto.java.

◆ parser()

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

Definition at line 940 of file IntervalConstraintProto.java.

◆ toBuilder()

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

Definition at line 320 of file IntervalConstraintProto.java.

◆ writeTo()

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

Definition at line 149 of file IntervalConstraintProto.java.

Member Data Documentation

◆ END_FIELD_NUMBER

final int com.google.ortools.sat.IntervalConstraintProto.END_FIELD_NUMBER = 5
static

Definition at line 85 of file IntervalConstraintProto.java.

◆ SIZE_FIELD_NUMBER

final int com.google.ortools.sat.IntervalConstraintProto.SIZE_FIELD_NUMBER = 6
static

Definition at line 111 of file IntervalConstraintProto.java.

◆ START_FIELD_NUMBER

final int com.google.ortools.sat.IntervalConstraintProto.START_FIELD_NUMBER = 4
static

Definition at line 59 of file IntervalConstraintProto.java.


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