alib.solutions¶
-
class
alib.solutions.FractionalScenarioSolution(name, scenario)¶ Scenario solution in which for each request convex combinations of mappings are allowed.
-
add_mapping(req, mapping, flow, load)¶
-
capacity_check(request, mapping, substrate)¶ checks if demand of all request nodes and edges is fullfilled by substrate capacity
-
type_check(request, mapping, substrate)¶ checks if requested types are in supported types from substrate
-
validate_solution()¶ validates types and capacity for each request and given list of mappings in scenario
-
-
class
alib.solutions.IntegralScenarioSolution(name, scenario)¶ Represents an integral solution to a scenario, i.e. it indicates for a subset (or all) requests integral mappings.
-
add_mapping(req, mapping)¶
-
capacity_check(request, mapping, substrate)¶ checks if demand of all request nodes and edges is fullfilled by substrate capacity
-
type_check(request, mapping, substrate)¶ checks if requested types are in supported types from substrate
-
validate_solution()¶ validates types and capacity for each request and given mapping in scenario
-
validate_solution_fulfills_capacity()¶
-
-
class
alib.solutions.Mapping(name, request, substrate, is_embedded)¶ Represents a valid mapping of a single request on a sustrate.
Initially, the mapping is empty and needs to be populated by the map_node and map_edge functions.
-
get_mapping_of_node(i)¶
-
map_edge(ij, mapped_path)¶ maps a virtual edge ij of the request to a path(multiple edges) mapped_path of the substrate
-
map_node(i, u)¶ Maps the single request node i on to the substrate node u.
-
-
exception
alib.solutions.MappingError¶
-
class
alib.solutions.ScenarioSolutionStorage(scenario_parameter_container, execution_parameter_container)¶ Encapsulates the solutions for a whole set of scenarios.
In general, this storage mirrors the ScenarioParametersContainer: for each scenario of the container, one solution (should be) is contained in the solution storage.
-
add_solution(algorithm_id, scenario_id, execution_id, solution)¶
-
get_solutions_by_algorithm(algorithm_id)¶
-
get_solutions_by_scenario_index(index)¶
-
merge_with_other_sss(other_sss)¶
-
retrieve_scenario_parameters_for_index(scenario_index)¶
-
-
exception
alib.solutions.SolutionStorageError¶