Class PartitionMapperFactory
java.lang.Object
se.sics.kompics.simulator.network.PartitionMapperFactory
public class PartitionMapperFactory extends Object
- Author:
- Alex Ormenisan {@literal <[email protected]>}
-
Constructor Summary
Constructors Constructor Description PartitionMapperFactory()
-
Method Summary
Modifier and Type Method Description static <ID extends Identifier>
PartitionMapper<ID>get2EqualPartitions(Class<ID> identifierClass)
static <ID extends Identifier>
PartitionMapper<ID>get2WeightedPartitions(Class<ID> identifierClass, int weight1, int weight2)
-
Constructor Details
-
Method Details
-
get2EqualPartitions
public static <ID extends Identifier> PartitionMapper<ID> get2EqualPartitions(Class<ID> identifierClass)- Returns:
- if nodeIds have a uniform distribution - the two partitions should be roughly equal
-
get2WeightedPartitions
public static <ID extends Identifier> PartitionMapper<ID> get2WeightedPartitions(Class<ID> identifierClass, int weight1, int weight2)
-