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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.sat.NoOverlap2DConstraintProto getDefaultInstanceForType ()
 
com.google.ortools.sat.NoOverlap2DConstraintProto build ()
 
com.google.ortools.sat.NoOverlap2DConstraintProto buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.sat.NoOverlap2DConstraintProto other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
java.util.List< java.lang.Integer > getXIntervalsList ()
 
int getXIntervalsCount ()
 
int getXIntervals (int index)
 
Builder setXIntervals (int index, int value)
 
Builder addXIntervals (int value)
 
Builder addAllXIntervals (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearXIntervals ()
 
java.util.List< java.lang.Integer > getYIntervalsList ()
 
int getYIntervalsCount ()
 
int getYIntervals (int index)
 
Builder setYIntervals (int index, int value)
 
Builder addYIntervals (int value)
 
Builder addAllYIntervals (java.lang.Iterable<? extends java.lang.Integer > values)
 
Builder clearYIntervals ()
 
- Public Member Functions inherited from com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

The boxes defined by [start_x, end_x) * [start_y, end_y) cannot overlap.
Furthermore, one box is optional if at least one of the x or y interval is
optional.

Note that the case of boxes of size zero is special. The following cases
violate the constraint:
- a point box inside a box with a non zero area
- a line box overlapping a box with a non zero area
- one vertical line box crossing an horizontal line box.

Protobuf type operations_research.sat.NoOverlap2DConstraintProto

Definition at line 346 of file NoOverlap2DConstraintProto.java.

Member Function Documentation

◆ addAllXIntervals()

Builder com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.addAllXIntervals ( java.lang.Iterable<? extends java.lang.Integer > values)

repeated int32 x_intervals = 1;

Parameters
valuesThe xIntervals to add.
Returns
This builder for chaining.

Definition at line 595 of file NoOverlap2DConstraintProto.java.

◆ addAllYIntervals()

Builder com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.addAllYIntervals ( java.lang.Iterable<? extends java.lang.Integer > values)
Same size as x_intervals.

repeated int32 y_intervals = 2;

Parameters
valuesThe yIntervals to add.
Returns
This builder for chaining.

Definition at line 703 of file NoOverlap2DConstraintProto.java.

◆ addXIntervals()

Builder com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.addXIntervals ( int value)

repeated int32 x_intervals = 1;

Parameters
valueThe xIntervals to add.
Returns
This builder for chaining.

Definition at line 582 of file NoOverlap2DConstraintProto.java.

◆ addYIntervals()

Builder com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.addYIntervals ( int value)
Same size as x_intervals.

repeated int32 y_intervals = 2;

Parameters
valueThe yIntervals to add.
Returns
This builder for chaining.

Definition at line 686 of file NoOverlap2DConstraintProto.java.

◆ build()

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

Definition at line 394 of file NoOverlap2DConstraintProto.java.

◆ buildPartial()

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

Definition at line 403 of file NoOverlap2DConstraintProto.java.

◆ clear()

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

Definition at line 374 of file NoOverlap2DConstraintProto.java.

◆ clearXIntervals()

Builder com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.clearXIntervals ( )

repeated int32 x_intervals = 1;

Returns
This builder for chaining.

Definition at line 608 of file NoOverlap2DConstraintProto.java.

◆ clearYIntervals()

Builder com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.clearYIntervals ( )
Same size as x_intervals.

repeated int32 y_intervals = 2;

Returns
This builder for chaining.

Definition at line 720 of file NoOverlap2DConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 389 of file NoOverlap2DConstraintProto.java.

◆ getDescriptor()

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

Definition at line 351 of file NoOverlap2DConstraintProto.java.

◆ getDescriptorForType()

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

Definition at line 384 of file NoOverlap2DConstraintProto.java.

◆ getXIntervals()

int com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.getXIntervals ( int index)

repeated int32 x_intervals = 1;

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

Implements com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder.

Definition at line 559 of file NoOverlap2DConstraintProto.java.

◆ getXIntervalsCount()

int com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.getXIntervalsCount ( )

repeated int32 x_intervals = 1;

Returns
The count of xIntervals.

Implements com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder.

Definition at line 551 of file NoOverlap2DConstraintProto.java.

◆ getXIntervalsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.getXIntervalsList ( )

repeated int32 x_intervals = 1;

Returns
A list containing the xIntervals.

Implements com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder.

Definition at line 543 of file NoOverlap2DConstraintProto.java.

◆ getYIntervals()

int com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.getYIntervals ( int index)
Same size as x_intervals.

repeated int32 y_intervals = 2;

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

Implements com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder.

Definition at line 655 of file NoOverlap2DConstraintProto.java.

◆ getYIntervalsCount()

int com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.getYIntervalsCount ( )
Same size as x_intervals.

repeated int32 y_intervals = 2;

Returns
The count of yIntervals.

Implements com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder.

Definition at line 643 of file NoOverlap2DConstraintProto.java.

◆ getYIntervalsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.getYIntervalsList ( )
Same size as x_intervals.

repeated int32 y_intervals = 2;

Returns
A list containing the yIntervals.

Implements com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder.

Definition at line 631 of file NoOverlap2DConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 357 of file NoOverlap2DConstraintProto.java.

◆ isInitialized()

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

Definition at line 462 of file NoOverlap2DConstraintProto.java.

◆ mergeFrom() [1/3]

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

Definition at line 432 of file NoOverlap2DConstraintProto.java.

◆ mergeFrom() [2/3]

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

Definition at line 467 of file NoOverlap2DConstraintProto.java.

◆ mergeFrom() [3/3]

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

Definition at line 423 of file NoOverlap2DConstraintProto.java.

◆ setXIntervals()

Builder com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.setXIntervals ( int index,
int value )

repeated int32 x_intervals = 1;

Parameters
indexThe index to set the value at.
valueThe xIntervals to set.
Returns
This builder for chaining.

Definition at line 568 of file NoOverlap2DConstraintProto.java.

◆ setYIntervals()

Builder com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.setYIntervals ( int index,
int value )
Same size as x_intervals.

repeated int32 y_intervals = 2;

Parameters
indexThe index to set the value at.
valueThe yIntervals to set.
Returns
This builder for chaining.

Definition at line 668 of file NoOverlap2DConstraintProto.java.


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