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

Classes

class  Builder
 

Public Member Functions

java.util.List< java.lang.Integer > getXIntervalsList ()
 
int getXIntervalsCount ()
 
int getXIntervals (int index)
 
java.util.List< java.lang.Integer > getYIntervalsList ()
 
int getYIntervalsCount ()
 
int getYIntervals (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< NoOverlap2DConstraintProtogetParserForType ()
 
com.google.ortools.sat.NoOverlap2DConstraintProto getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder

Static Public Member Functions

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

Static Public Attributes

static final int X_INTERVALS_FIELD_NUMBER = 1
 
static final int Y_INTERVALS_FIELD_NUMBER = 2
 

Protected Member Functions

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

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 22 of file NoOverlap2DConstraintProto.java.

Member Function Documentation

◆ equals()

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

Definition at line 202 of file NoOverlap2DConstraintProto.java.

◆ getDefaultInstance()

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

Definition at line 736 of file NoOverlap2DConstraintProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 772 of file NoOverlap2DConstraintProto.java.

◆ getDescriptor()

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

Definition at line 46 of file NoOverlap2DConstraintProto.java.

◆ getParserForType()

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

Definition at line 767 of file NoOverlap2DConstraintProto.java.

◆ getSerializedSize()

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

Definition at line 163 of file NoOverlap2DConstraintProto.java.

◆ getXIntervals()

int com.google.ortools.sat.NoOverlap2DConstraintProto.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 83 of file NoOverlap2DConstraintProto.java.

◆ getXIntervalsCount()

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

repeated int32 x_intervals = 1;

Returns
The count of xIntervals.

Implements com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder.

Definition at line 75 of file NoOverlap2DConstraintProto.java.

◆ getXIntervalsList()

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

repeated int32 x_intervals = 1;

Returns
A list containing the xIntervals.

Implements com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder.

Definition at line 68 of file NoOverlap2DConstraintProto.java.

◆ getYIntervals()

int com.google.ortools.sat.NoOverlap2DConstraintProto.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 125 of file NoOverlap2DConstraintProto.java.

◆ getYIntervalsCount()

int com.google.ortools.sat.NoOverlap2DConstraintProto.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 113 of file NoOverlap2DConstraintProto.java.

◆ getYIntervalsList()

java.util.List< java.lang.Integer > com.google.ortools.sat.NoOverlap2DConstraintProto.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 102 of file NoOverlap2DConstraintProto.java.

◆ hashCode()

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

Definition at line 220 of file NoOverlap2DConstraintProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 52 of file NoOverlap2DConstraintProto.java.

◆ isInitialized()

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

Definition at line 132 of file NoOverlap2DConstraintProto.java.

◆ newBuilder() [1/2]

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

Definition at line 313 of file NoOverlap2DConstraintProto.java.

◆ newBuilder() [2/2]

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

Definition at line 316 of file NoOverlap2DConstraintProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 312 of file NoOverlap2DConstraintProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 326 of file NoOverlap2DConstraintProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 284 of file NoOverlap2DConstraintProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 290 of file NoOverlap2DConstraintProto.java.

◆ parseFrom() [1/10]

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

Definition at line 261 of file NoOverlap2DConstraintProto.java.

◆ parseFrom() [2/10]

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

Definition at line 265 of file NoOverlap2DConstraintProto.java.

◆ parseFrom() [3/10]

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

Definition at line 250 of file NoOverlap2DConstraintProto.java.

◆ parseFrom() [4/10]

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

Definition at line 255 of file NoOverlap2DConstraintProto.java.

◆ parseFrom() [5/10]

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

Definition at line 297 of file NoOverlap2DConstraintProto.java.

◆ parseFrom() [6/10]

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

Definition at line 303 of file NoOverlap2DConstraintProto.java.

◆ parseFrom() [7/10]

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

Definition at line 271 of file NoOverlap2DConstraintProto.java.

◆ parseFrom() [8/10]

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

Definition at line 276 of file NoOverlap2DConstraintProto.java.

◆ parseFrom() [9/10]

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

Definition at line 239 of file NoOverlap2DConstraintProto.java.

◆ parseFrom() [10/10]

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

Definition at line 244 of file NoOverlap2DConstraintProto.java.

◆ parser()

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

Definition at line 762 of file NoOverlap2DConstraintProto.java.

◆ toBuilder()

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

Definition at line 320 of file NoOverlap2DConstraintProto.java.

◆ writeTo()

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

Definition at line 142 of file NoOverlap2DConstraintProto.java.

Member Data Documentation

◆ X_INTERVALS_FIELD_NUMBER

final int com.google.ortools.sat.NoOverlap2DConstraintProto.X_INTERVALS_FIELD_NUMBER = 1
static

Definition at line 58 of file NoOverlap2DConstraintProto.java.

◆ Y_INTERVALS_FIELD_NUMBER

final int com.google.ortools.sat.NoOverlap2DConstraintProto.Y_INTERVALS_FIELD_NUMBER = 2
static

Definition at line 88 of file NoOverlap2DConstraintProto.java.


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