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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.IntervalConstraintProto getDefaultInstanceForType ()
 
com.google.ortools.sat.IntervalConstraintProto build ()
 
com.google.ortools.sat.IntervalConstraintProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.IntervalConstraintProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
boolean hasStart ()
 
com.google.ortools.sat.LinearExpressionProto getStart ()
 
Builder setStart (com.google.ortools.sat.LinearExpressionProto value)
 
Builder setStart (com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder mergeStart (com.google.ortools.sat.LinearExpressionProto value)
 
Builder clearStart ()
 
com.google.ortools.sat.LinearExpressionProto.Builder getStartBuilder ()
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getStartOrBuilder ()
 
boolean hasEnd ()
 
com.google.ortools.sat.LinearExpressionProto getEnd ()
 
Builder setEnd (com.google.ortools.sat.LinearExpressionProto value)
 
Builder setEnd (com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder mergeEnd (com.google.ortools.sat.LinearExpressionProto value)
 
Builder clearEnd ()
 
com.google.ortools.sat.LinearExpressionProto.Builder getEndBuilder ()
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getEndOrBuilder ()
 
boolean hasSize ()
 
com.google.ortools.sat.LinearExpressionProto getSize ()
 
Builder setSize (com.google.ortools.sat.LinearExpressionProto value)
 
Builder setSize (com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)
 
Builder mergeSize (com.google.ortools.sat.LinearExpressionProto value)
 
Builder clearSize ()
 
com.google.ortools.sat.LinearExpressionProto.Builder getSizeBuilder ()
 
com.google.ortools.sat.LinearExpressionProtoOrBuilder getSizeOrBuilder ()
 
- Public Member Functions inherited from com.google.ortools.sat.IntervalConstraintProtoOrBuilder

Static Public Member Functions

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

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 

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 348 of file IntervalConstraintProto.java.

Member Function Documentation

◆ build()

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

Definition at line 417 of file IntervalConstraintProto.java.

◆ buildPartial()

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

Definition at line 426 of file IntervalConstraintProto.java.

◆ clear()

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

Definition at line 384 of file IntervalConstraintProto.java.

◆ clearEnd()

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

.operations_research.sat.LinearExpressionProto end = 5;

Definition at line 738 of file IntervalConstraintProto.java.

◆ clearSize()

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

.operations_research.sat.LinearExpressionProto size = 6;

Definition at line 859 of file IntervalConstraintProto.java.

◆ clearStart()

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

.operations_research.sat.LinearExpressionProto start = 4;

Definition at line 617 of file IntervalConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 412 of file IntervalConstraintProto.java.

◆ getDescriptor()

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

Definition at line 353 of file IntervalConstraintProto.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.IntervalConstraintProto.Builder.getDescriptorForType ( )

Definition at line 407 of file IntervalConstraintProto.java.

◆ getEnd()

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

.operations_research.sat.LinearExpressionProto end = 5;

Returns
The end.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 677 of file IntervalConstraintProto.java.

◆ getEndBuilder()

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.IntervalConstraintProto.Builder.getEndBuilder ( )

.operations_research.sat.LinearExpressionProto end = 5;

Definition at line 751 of file IntervalConstraintProto.java.

◆ getEndOrBuilder()

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

.operations_research.sat.LinearExpressionProto end = 5;

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 759 of file IntervalConstraintProto.java.

◆ getSize()

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

.operations_research.sat.LinearExpressionProto size = 6;

Returns
The size.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 798 of file IntervalConstraintProto.java.

◆ getSizeBuilder()

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.IntervalConstraintProto.Builder.getSizeBuilder ( )

.operations_research.sat.LinearExpressionProto size = 6;

Definition at line 872 of file IntervalConstraintProto.java.

◆ getSizeOrBuilder()

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

.operations_research.sat.LinearExpressionProto size = 6;

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 880 of file IntervalConstraintProto.java.

◆ getStart()

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

.operations_research.sat.LinearExpressionProto start = 4;

Returns
The start.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 556 of file IntervalConstraintProto.java.

◆ getStartBuilder()

com.google.ortools.sat.LinearExpressionProto.Builder com.google.ortools.sat.IntervalConstraintProto.Builder.getStartBuilder ( )

.operations_research.sat.LinearExpressionProto start = 4;

Definition at line 630 of file IntervalConstraintProto.java.

◆ getStartOrBuilder()

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

.operations_research.sat.LinearExpressionProto start = 4;

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 638 of file IntervalConstraintProto.java.

◆ hasEnd()

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

.operations_research.sat.LinearExpressionProto end = 5;

Returns
Whether the end field is set.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 670 of file IntervalConstraintProto.java.

◆ hasSize()

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

.operations_research.sat.LinearExpressionProto size = 6;

Returns
Whether the size field is set.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 791 of file IntervalConstraintProto.java.

◆ hasStart()

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

.operations_research.sat.LinearExpressionProto start = 4;

Returns
Whether the start field is set.

Implements com.google.ortools.sat.IntervalConstraintProtoOrBuilder.

Definition at line 549 of file IntervalConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 359 of file IntervalConstraintProto.java.

◆ isInitialized()

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

Definition at line 484 of file IntervalConstraintProto.java.

◆ mergeEnd()

Builder com.google.ortools.sat.IntervalConstraintProto.Builder.mergeEnd ( com.google.ortools.sat.LinearExpressionProto value)

.operations_research.sat.LinearExpressionProto end = 5;

Definition at line 717 of file IntervalConstraintProto.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.sat.IntervalConstraintProto.Builder.mergeFrom ( com.google.ortools.sat.IntervalConstraintProto other)

Definition at line 467 of file IntervalConstraintProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 489 of file IntervalConstraintProto.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.sat.IntervalConstraintProto.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 458 of file IntervalConstraintProto.java.

◆ mergeSize()

Builder com.google.ortools.sat.IntervalConstraintProto.Builder.mergeSize ( com.google.ortools.sat.LinearExpressionProto value)

.operations_research.sat.LinearExpressionProto size = 6;

Definition at line 838 of file IntervalConstraintProto.java.

◆ mergeStart()

Builder com.google.ortools.sat.IntervalConstraintProto.Builder.mergeStart ( com.google.ortools.sat.LinearExpressionProto value)

.operations_research.sat.LinearExpressionProto start = 4;

Definition at line 596 of file IntervalConstraintProto.java.

◆ setEnd() [1/2]

Builder com.google.ortools.sat.IntervalConstraintProto.Builder.setEnd ( com.google.ortools.sat.LinearExpressionProto value)

.operations_research.sat.LinearExpressionProto end = 5;

Definition at line 687 of file IntervalConstraintProto.java.

◆ setEnd() [2/2]

Builder com.google.ortools.sat.IntervalConstraintProto.Builder.setEnd ( com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)

.operations_research.sat.LinearExpressionProto end = 5;

Definition at line 703 of file IntervalConstraintProto.java.

◆ setSize() [1/2]

Builder com.google.ortools.sat.IntervalConstraintProto.Builder.setSize ( com.google.ortools.sat.LinearExpressionProto value)

.operations_research.sat.LinearExpressionProto size = 6;

Definition at line 808 of file IntervalConstraintProto.java.

◆ setSize() [2/2]

Builder com.google.ortools.sat.IntervalConstraintProto.Builder.setSize ( com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)

.operations_research.sat.LinearExpressionProto size = 6;

Definition at line 824 of file IntervalConstraintProto.java.

◆ setStart() [1/2]

Builder com.google.ortools.sat.IntervalConstraintProto.Builder.setStart ( com.google.ortools.sat.LinearExpressionProto value)

.operations_research.sat.LinearExpressionProto start = 4;

Definition at line 566 of file IntervalConstraintProto.java.

◆ setStart() [2/2]

Builder com.google.ortools.sat.IntervalConstraintProto.Builder.setStart ( com.google.ortools.sat.LinearExpressionProto.Builder builderForValue)

.operations_research.sat.LinearExpressionProto start = 4;

Definition at line 582 of file IntervalConstraintProto.java.


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