Package dsc_suite :: Package ds :: Module o_sequence :: Class OSequence
[hide private]
[frames] | no frames]

Class OSequence

source code

                  object --+    
                           |    
data_structure.DataStructure --+
                               |
                              OSequence

class OSequence(DataStructure) - O-Sequence implementation

O-Sequence format : [module_permutation, section_variation, wall_combination, block_rotations, o_sequence]

o_sequence optional, None if not given

TODO: detailed docstring

Instance Methods [hide private]
 
__init__(self, benchmark)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_part_of_representation(self, part_index, part_number)
get a single element out of a part of the abstract representation, part_number between 0 and part_lengths[part_index]
source code
 
packing_to_representation(self, packing)
is not possible with every data structure
source code
 
get_random_representation(self)
still required to test if random solutions are evenly distributed!
source code
 
get_P(self, slicing_variation, wall_count) source code
 
pair_check(self, P_list) source code
 
test_no3(self, P_list) source code
 
is_valid(self, representation)
check if given o-sequence is valid.
source code
 
create_packing(self, representation)
Return packing in dict format.
source code

Inherited from data_structure.DataStructure: __getitem__, convert_part_numbers, cost_evaluation, generate_solution_space, get_all_representations, get_operations, get_part_numbers, get_representation, merge_representations, set_benchmark

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  name = 'O Sequence'

Inherited from data_structure.DataStructure: CONNECTIONS, DIMENSIONS, MODULETYPE, ORIGINAL, ROTATED

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, benchmark)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

get_part_of_representation(self, part_index, part_number)

source code 

get a single element out of a part of the abstract representation, part_number between 0 and part_lengths[part_index]

Overrides: data_structure.DataStructure.get_part_of_representation

packing_to_representation(self, packing)

source code 

is not possible with every data structure

Overrides: data_structure.DataStructure.packing_to_representation
(inherited documentation)

get_random_representation(self)

source code 

still required to test if random solutions are evenly distributed!

Overrides: data_structure.DataStructure.get_random_representation

is_valid(self, representation)

source code 

check if given o-sequence is valid.

O-Sequence format : [module_permutation, section_variation, wall_combination, block_rotations]

#1: section_variation[i] sequence of exclusively X, Y or Z, length at least 1 -> given #2: parenthesis system, ordered pairing (X_k, k), (Y_k, k) and (Z_k, k) for k = 1, 2, ..., n #3: previously used walls do not conflict with current ones

create_packing(self, representation)

source code 

Return packing in dict format. packing = {'name' : [x, y, z, w, h, d], ...}

Overrides: data_structure.DataStructure.create_packing