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

Classes

class  Builder
 

Public Member Functions

java.util.List< java.lang.Integer > getSupportList ()
 
int getSupportCount ()
 
int getSupport (int index)
 
java.util.List< java.lang.Integer > getCycleSizesList ()
 
int getCycleSizesCount ()
 
int getCycleSizes (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< SparsePermutationProtogetParserForType ()
 
com.google.ortools.sat.SparsePermutationProto getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.sat.SparsePermutationProtoOrBuilder

Static Public Member Functions

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

Static Public Attributes

static final int SUPPORT_FIELD_NUMBER = 1
 
static final int CYCLE_SIZES_FIELD_NUMBER = 2
 

Protected Member Functions

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

Detailed Description

A permutation of integers encoded as a list of cycles, hence the "sparse"
format. The image of an element cycle[i] is cycle[(i + 1) % cycle_length].

Protobuf type operations_research.sat.SparsePermutationProto

Definition at line 15 of file SparsePermutationProto.java.

Member Function Documentation

◆ equals()

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

Definition at line 198 of file SparsePermutationProto.java.

◆ getCycleSizes()

int com.google.ortools.sat.SparsePermutationProto.getCycleSizes ( int index)

repeated int32 cycle_sizes = 2;

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

Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.

Definition at line 121 of file SparsePermutationProto.java.

◆ getCycleSizesCount()

int com.google.ortools.sat.SparsePermutationProto.getCycleSizesCount ( )

repeated int32 cycle_sizes = 2;

Returns
The count of cycleSizes.

Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.

Definition at line 113 of file SparsePermutationProto.java.

◆ getCycleSizesList()

java.util.List< java.lang.Integer > com.google.ortools.sat.SparsePermutationProto.getCycleSizesList ( )

repeated int32 cycle_sizes = 2;

Returns
A list containing the cycleSizes.

Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.

Definition at line 106 of file SparsePermutationProto.java.

◆ getDefaultInstance()

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

Definition at line 732 of file SparsePermutationProto.java.

◆ getDefaultInstanceForType()

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

Definition at line 768 of file SparsePermutationProto.java.

◆ getDescriptor()

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

Definition at line 39 of file SparsePermutationProto.java.

◆ getParserForType()

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

Definition at line 763 of file SparsePermutationProto.java.

◆ getSerializedSize()

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

Definition at line 159 of file SparsePermutationProto.java.

◆ getSupport()

int com.google.ortools.sat.SparsePermutationProto.getSupport ( int index)
Each cycle is listed one after the other in the support field.
The size of each cycle is given (in order) in the cycle_sizes field.

repeated int32 support = 1;

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

Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.

Definition at line 91 of file SparsePermutationProto.java.

◆ getSupportCount()

int com.google.ortools.sat.SparsePermutationProto.getSupportCount ( )
Each cycle is listed one after the other in the support field.
The size of each cycle is given (in order) in the cycle_sizes field.

repeated int32 support = 1;

Returns
The count of support.

Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.

Definition at line 78 of file SparsePermutationProto.java.

◆ getSupportList()

java.util.List< java.lang.Integer > com.google.ortools.sat.SparsePermutationProto.getSupportList ( )
Each cycle is listed one after the other in the support field.
The size of each cycle is given (in order) in the cycle_sizes field.

repeated int32 support = 1;

Returns
A list containing the support.

Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.

Definition at line 66 of file SparsePermutationProto.java.

◆ hashCode()

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

Definition at line 216 of file SparsePermutationProto.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 45 of file SparsePermutationProto.java.

◆ isInitialized()

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

Definition at line 128 of file SparsePermutationProto.java.

◆ newBuilder() [1/2]

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

Definition at line 309 of file SparsePermutationProto.java.

◆ newBuilder() [2/2]

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

Definition at line 312 of file SparsePermutationProto.java.

◆ newBuilderForType() [1/2]

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

Definition at line 308 of file SparsePermutationProto.java.

◆ newBuilderForType() [2/2]

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

Definition at line 322 of file SparsePermutationProto.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 280 of file SparsePermutationProto.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 286 of file SparsePermutationProto.java.

◆ parseFrom() [1/10]

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

Definition at line 257 of file SparsePermutationProto.java.

◆ parseFrom() [2/10]

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

Definition at line 261 of file SparsePermutationProto.java.

◆ parseFrom() [3/10]

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

Definition at line 246 of file SparsePermutationProto.java.

◆ parseFrom() [4/10]

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

Definition at line 251 of file SparsePermutationProto.java.

◆ parseFrom() [5/10]

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

Definition at line 293 of file SparsePermutationProto.java.

◆ parseFrom() [6/10]

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

Definition at line 299 of file SparsePermutationProto.java.

◆ parseFrom() [7/10]

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

Definition at line 267 of file SparsePermutationProto.java.

◆ parseFrom() [8/10]

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

Definition at line 272 of file SparsePermutationProto.java.

◆ parseFrom() [9/10]

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

Definition at line 235 of file SparsePermutationProto.java.

◆ parseFrom() [10/10]

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

Definition at line 240 of file SparsePermutationProto.java.

◆ parser()

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

Definition at line 758 of file SparsePermutationProto.java.

◆ toBuilder()

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

Definition at line 316 of file SparsePermutationProto.java.

◆ writeTo()

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

Definition at line 138 of file SparsePermutationProto.java.

Member Data Documentation

◆ CYCLE_SIZES_FIELD_NUMBER

final int com.google.ortools.sat.SparsePermutationProto.CYCLE_SIZES_FIELD_NUMBER = 2
static

Definition at line 96 of file SparsePermutationProto.java.

◆ SUPPORT_FIELD_NUMBER

final int com.google.ortools.sat.SparsePermutationProto.SUPPORT_FIELD_NUMBER = 1
static

Definition at line 51 of file SparsePermutationProto.java.


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