当前位置: 首页>>代码示例>>Java>>正文


Java PathSplittingVirtualLinkMapping类代码示例

本文整理汇总了Java中vnreal.algorithms.linkmapping.PathSplittingVirtualLinkMapping的典型用法代码示例。如果您正苦于以下问题:Java PathSplittingVirtualLinkMapping类的具体用法?Java PathSplittingVirtualLinkMapping怎么用?Java PathSplittingVirtualLinkMapping使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PathSplittingVirtualLinkMapping类属于vnreal.algorithms.linkmapping包,在下文中一共展示了PathSplittingVirtualLinkMapping类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: NodeRanking

import vnreal.algorithms.linkmapping.PathSplittingVirtualLinkMapping; //导入依赖的package包/类
public NodeRanking(AlgorithmParameter param) {
	boolean nodeOverload = param.getBoolean("overload", DEFAULT_OVERLOAD);
	int distance = param.getInteger("distance", DEFAULT_DIST);
	double epsilon = param.getDouble("epsilon", DEFAULT_EPSILON);

	this.nodeMappingAlgorithm = new NodeRankingBasedAlgorithm(nodeOverload, epsilon, distance);
	
	if (param.getBoolean("PathSplitting", DEFAULT_PS)) {
		double weightCpu = param.getDouble("weightCpu", DEFAULT_WCPU);
		double weightBw = param.getDouble("weightBw", DEFAULT_WBW);
		this.linkMappingAlgorithm = new PathSplittingVirtualLinkMapping(weightCpu, weightBw);
	} else {
		int k = param.getInteger("kShortestPath", DEFAULT_KSP);
		boolean eppstein = param.getBoolean("eppstein", DEFAULT_EPPSTEIN);
		this.linkMappingAlgorithm = new kShortestPathLinkMapping(k, eppstein);
	}
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:18,代码来源:NodeRanking.java

示例2: AvailableResources

import vnreal.algorithms.linkmapping.PathSplittingVirtualLinkMapping; //导入依赖的package包/类
/**
 * Constructor of the algorithm
 * 
 * @param AlgorithmParameter Accepts settings for: <br />
 * "distance" (int) - The maximum distance within which to search for substrate nodes
 * (set to a negative value to disable) <br />
 * "overload" (boolean) - Indicate, whether a substrate node may host more than one
 * node of each VirtualNetwork <br />
 * "PathSplitting" (boolean) - Indicate, whether link mapping should allow virtual
 * links to be split over several paths <br />
 * "weightCpu" (double) - The weight of CPU resources <br />
 * "weightBw" (double) - The weight of BW resources <br />
 * "kShortestPath" (int) - The number k of shortest paths to compute  
 * 
 */
public AvailableResources(AlgorithmParameter param) {
	int distance = param.getInteger("distance", DEFAULT_DIST);
	boolean nodeOverload = param.getBoolean("overload", DEFAULT_OVERLOAD);
	this.nodeMappingAlgorithm = new AvailableResourcesNodeMapping(distance, nodeOverload);
	
	if (param.getBoolean("PathSplitting", DEFAULT_PS)) {
		double weightCpu = param.getDouble("weightCpu", DEFAULT_WCPU);
		double weightBw = param.getDouble("weightBw", DEFAULT_WBW);
		this.linkMappingAlgorithm = new PathSplittingVirtualLinkMapping(weightCpu, weightBw);
	} else {		
		int k = param.getInteger("kShortestPath", DEFAULT_KSP);
		boolean eppstein = param.getBoolean("eppstein", DEFAULT_EPPSTEIN);
		this.linkMappingAlgorithm = new kShortestPathLinkMapping(k, eppstein);
	}

}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:32,代码来源:AvailableResources.java

示例3: CoordinatedMappingPathSplitting

import vnreal.algorithms.linkmapping.PathSplittingVirtualLinkMapping; //导入依赖的package包/类
public CoordinatedMappingPathSplitting(NetworkStack stack, int dist,
                                       double wCpu, double wBw, int type, boolean nodeOverload) {
    super(MiscelFunctions.sortByRevenues(stack),
            new CoordinatedVirtualNodeMapping(stack.getSubstrate(), dist,
                    wCpu, wBw, type, nodeOverload),
            new PathSplittingVirtualLinkMapping(stack.getSubstrate(), wCpu,
                    wBw));
}
 
开发者ID:liruixpc11,项目名称:crucian,代码行数:9,代码来源:CoordinatedMappingPathSplitting.java

示例4: AvailableResourcesPathSplitting

import vnreal.algorithms.linkmapping.PathSplittingVirtualLinkMapping; //导入依赖的package包/类
public AvailableResourcesPathSplitting(NetworkStack stack,
                                       double weightCpu, double weightBw, int distance,
                                       boolean isDistance, boolean nodeOverload) {
    super(MiscelFunctions.sortByRevenues(stack),
            new AvailableResourcesNodeMapping(stack.getSubstrate(),
                    distance, isDistance, nodeOverload),
            new PathSplittingVirtualLinkMapping(stack.getSubstrate(),
                    weightCpu, weightBw));
}
 
开发者ID:liruixpc11,项目名称:crucian,代码行数:10,代码来源:AvailableResourcesPathSplitting.java

示例5: NodeRankingPathSplitting

import vnreal.algorithms.linkmapping.PathSplittingVirtualLinkMapping; //导入依赖的package包/类
public NodeRankingPathSplitting(NetworkStack stack, double weightCpu,
		double weightBw, int distance, boolean isDistance,
		boolean nodeOverload) {
	super(MiscelFunctions.sortByRevenues(stack),
			new NodeRankingBasedAlgorithm(stack.getSubstrate(),
					nodeOverload, 0.0001, isDistance, distance),
			new PathSplittingVirtualLinkMapping(stack.getSubstrate(),
					weightCpu, weightBw));
}
 
开发者ID:fabe85,项目名称:Alevin,代码行数:10,代码来源:NodeRankingPathSplitting.java

示例6: CoordinatedMappingPathSplitting

import vnreal.algorithms.linkmapping.PathSplittingVirtualLinkMapping; //导入依赖的package包/类
public CoordinatedMappingPathSplitting(NetworkStack stack, int dist,
		double wCpu, double wBw, int type, boolean nodeOverload) {
	super(MiscelFunctions.sortByRevenues(stack),
			new CoordinatedVirtualNodeMapping(stack.getSubstrate(), dist,
					wCpu, wBw, type, nodeOverload),
			new PathSplittingVirtualLinkMapping(stack.getSubstrate(), wCpu,
					wBw));
}
 
开发者ID:fabe85,项目名称:Alevin,代码行数:9,代码来源:CoordinatedMappingPathSplitting.java

示例7: AvailableResourcesPathSplitting

import vnreal.algorithms.linkmapping.PathSplittingVirtualLinkMapping; //导入依赖的package包/类
public AvailableResourcesPathSplitting(NetworkStack stack,
		double weightCpu, double weightBw, int distance,
		boolean isDistance, boolean nodeOverload) {
	super(MiscelFunctions.sortByRevenues(stack),
			new AvailableResourcesNodeMapping(stack.getSubstrate(),
					distance, isDistance, nodeOverload),
			new PathSplittingVirtualLinkMapping(stack.getSubstrate(),
					weightCpu, weightBw));
}
 
开发者ID:fabe85,项目名称:Alevin,代码行数:10,代码来源:AvailableResourcesPathSplitting.java


注:本文中的vnreal.algorithms.linkmapping.PathSplittingVirtualLinkMapping类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。