Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
Builder | clear () |
com.google.protobuf.Descriptors.Descriptor | getDescriptorForType () |
com.google.ortools.sat.SparsePermutationProto | getDefaultInstanceForType () |
com.google.ortools.sat.SparsePermutationProto | build () |
com.google.ortools.sat.SparsePermutationProto | buildPartial () |
Builder | clone () |
Builder | setField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) |
Builder | clearField (com.google.protobuf.Descriptors.FieldDescriptor field) |
Builder | clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Builder | setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) |
Builder | addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) |
Builder | mergeFrom (com.google.protobuf.Message other) |
Builder | mergeFrom (com.google.ortools.sat.SparsePermutationProto 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 > | getSupportList () |
int | getSupportCount () |
int | getSupport (int index) |
Builder | setSupport (int index, int value) |
Builder | addSupport (int value) |
Builder | addAllSupport (java.lang.Iterable<? extends java.lang.Integer > values) |
Builder | clearSupport () |
java.util.List< java.lang.Integer > | getCycleSizesList () |
int | getCycleSizesCount () |
int | getCycleSizes (int index) |
Builder | setCycleSizes (int index, int value) |
Builder | addCycleSizes (int value) |
Builder | addAllCycleSizes (java.lang.Iterable<? extends java.lang.Integer > values) |
Builder | clearCycleSizes () |
final Builder | setUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields) |
final Builder | mergeUnknownFields (final com.google.protobuf.UnknownFieldSet unknownFields) |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | internalGetFieldAccessorTable () |
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 333 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.addAllCycleSizes | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
repeated int32 cycle_sizes = 2;
values | The cycleSizes to add. |
Definition at line 733 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.addAllSupport | ( | java.lang.Iterable<? extends java.lang.Integer > | values | ) |
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;
values | The support to add. |
Definition at line 644 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.addCycleSizes | ( | int | value | ) |
repeated int32 cycle_sizes = 2;
value | The cycleSizes to add. |
Definition at line 720 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.addRepeatedField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
java.lang.Object | value ) |
Definition at line 436 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.addSupport | ( | int | value | ) |
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;
value | The support to add. |
Definition at line 626 of file SparsePermutationProto.java.
com.google.ortools.sat.SparsePermutationProto com.google.ortools.sat.SparsePermutationProto.Builder.build | ( | ) |
Definition at line 381 of file SparsePermutationProto.java.
com.google.ortools.sat.SparsePermutationProto com.google.ortools.sat.SparsePermutationProto.Builder.buildPartial | ( | ) |
Definition at line 390 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.clear | ( | ) |
Definition at line 361 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.clearCycleSizes | ( | ) |
repeated int32 cycle_sizes = 2;
Definition at line 746 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.clearField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field | ) |
Definition at line 420 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.clearOneof | ( | com.google.protobuf.Descriptors.OneofDescriptor | oneof | ) |
Definition at line 425 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.clearSupport | ( | ) |
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;
Definition at line 662 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.clone | ( | ) |
Definition at line 410 of file SparsePermutationProto.java.
int com.google.ortools.sat.SparsePermutationProto.Builder.getCycleSizes | ( | int | index | ) |
repeated int32 cycle_sizes = 2;
index | The index of the element to return. |
Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.
Definition at line 697 of file SparsePermutationProto.java.
int com.google.ortools.sat.SparsePermutationProto.Builder.getCycleSizesCount | ( | ) |
repeated int32 cycle_sizes = 2;
Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.
Definition at line 689 of file SparsePermutationProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.SparsePermutationProto.Builder.getCycleSizesList | ( | ) |
repeated int32 cycle_sizes = 2;
Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.
Definition at line 681 of file SparsePermutationProto.java.
com.google.ortools.sat.SparsePermutationProto com.google.ortools.sat.SparsePermutationProto.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 376 of file SparsePermutationProto.java.
|
static |
Definition at line 338 of file SparsePermutationProto.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.sat.SparsePermutationProto.Builder.getDescriptorForType | ( | ) |
Definition at line 371 of file SparsePermutationProto.java.
int com.google.ortools.sat.SparsePermutationProto.Builder.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;
index | The index of the element to return. |
Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.
Definition at line 593 of file SparsePermutationProto.java.
int com.google.ortools.sat.SparsePermutationProto.Builder.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;
Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.
Definition at line 580 of file SparsePermutationProto.java.
java.util.List< java.lang.Integer > com.google.ortools.sat.SparsePermutationProto.Builder.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;
Implements com.google.ortools.sat.SparsePermutationProtoOrBuilder.
Definition at line 567 of file SparsePermutationProto.java.
|
protected |
Definition at line 344 of file SparsePermutationProto.java.
final boolean com.google.ortools.sat.SparsePermutationProto.Builder.isInitialized | ( | ) |
Definition at line 481 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.mergeFrom | ( | com.google.ortools.sat.SparsePermutationProto | other | ) |
Definition at line 451 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 486 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 442 of file SparsePermutationProto.java.
final Builder com.google.ortools.sat.SparsePermutationProto.Builder.mergeUnknownFields | ( | final com.google.protobuf.UnknownFieldSet | unknownFields | ) |
Definition at line 759 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.setCycleSizes | ( | int | index, |
int | value ) |
repeated int32 cycle_sizes = 2;
index | The index to set the value at. |
value | The cycleSizes to set. |
Definition at line 706 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.setField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
java.lang.Object | value ) |
Definition at line 414 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.setRepeatedField | ( | com.google.protobuf.Descriptors.FieldDescriptor | field, |
int | index, | ||
java.lang.Object | value ) |
Definition at line 430 of file SparsePermutationProto.java.
Builder com.google.ortools.sat.SparsePermutationProto.Builder.setSupport | ( | int | index, |
int | value ) |
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;
index | The index to set the value at. |
value | The support to set. |
Definition at line 607 of file SparsePermutationProto.java.
final Builder com.google.ortools.sat.SparsePermutationProto.Builder.setUnknownFields | ( | final com.google.protobuf.UnknownFieldSet | unknownFields | ) |
Definition at line 753 of file SparsePermutationProto.java.