Interface AllocationStrategy
- All Known Implementing Classes:
LocalSearchStrategy
,SequentialSearchStrategy
public interface AllocationStrategy
This interface defines the strategy for allocating resources in a hypergraph.
-
Method Summary
Modifier and TypeMethodDescriptionallocate
(HyperGraph hyperGraph) Allocates resources based on a specific strategy.getHyperEdges
(HyperGraph hyperGraph, Set<Vertex> vertices) Gets the hyperedges in the hypergraph associated with the given vertices in the conflict graph.
-
Method Details
-
allocate
Allocates resources based on a specific strategy.- Parameters:
hyperGraph
- the hypergraph used to allocate resources- Returns:
- a set of vertices in the conflict graph selected by the allocation strategy
-
getHyperEdges
Gets the hyperedges in the hypergraph associated with the given vertices in the conflict graph.- Parameters:
hyperGraph
- the hypergraphvertices
- the set of vertices- Returns:
- a set of hyperedges associated with the vertices
-