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


Java BwProvisioner类代码示例

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


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

示例1: Host

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
/**
 * Instantiates a new host.
 * 
 * @param id the id
 * @param ramProvisioner the ram provisioner
 * @param bwProvisioner the bw provisioner
 * @param storage the storage
 * @param peList the pe list
 * @param vmScheduler the vm scheduler
 */
public Host(
		int id,
		RamProvisioner ramProvisioner,
		BwProvisioner bwProvisioner,
		long storage,
		List<? extends Pe> peList,
		VmScheduler vmScheduler) {
	setId(id);
	setRamProvisioner(ramProvisioner);
	setBwProvisioner(bwProvisioner);
	setStorage(storage);
	setVmScheduler(vmScheduler);

	setPeList(peList);
	setFailed(false);
}
 
开发者ID:gmartinezramirez,项目名称:Fog-Computing-Mobile-Architecture,代码行数:27,代码来源:Host.java

示例2: createHost

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
@Override
	public SDNHost createHost(int ram, long bw, long storage, long pes, double mips) {
		LinkedList<Pe> peList = new LinkedList<Pe>();
		int peId=0;
		
		for(int i=0;i<pes;i++) {
			PeProvisionerOverbooking prov = new PeProvisionerOverbooking(mips);
			Pe pe = new Pe(peId++, prov);
			peList.add(pe);
		}
		
		RamProvisioner ramPro = new RamProvisionerSimple(ram);
		BwProvisioner bwPro = new BwProvisionerOverbooking(bw);
		VmScheduler vmScheduler = new VmSchedulerTimeSharedOverSubscriptionDynamicVM(peList);		
//		VmScheduler vmScheduler = new VmSchedulerTimeSharedOverSubscriptionDynamicCloudlets(peList);
		SDNHost newHost = new SDNHost(ramPro, bwPro, storage, peList, vmScheduler, this);
		((VmSchedulerTimeSharedOverSubscriptionDynamicVM)vmScheduler).debugSetHost(newHost);
		
		return newHost;		
	}
 
开发者ID:jayjmin,项目名称:cloudsimsdn,代码行数:21,代码来源:OverbookingNetworkOperatingSystem.java

示例3: HostBuilder

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
private HostBuilder(int numberOfCores, double mips, int ramSize, long bw, long storageCapacity,
        Class<? extends PeProvisioner> cpuProvisionerClass, Class<? extends RamProvisioner> ramProvisionerClass,
        Class<? extends VmScheduler> vmSchedulerClass,
        Class<? extends BwProvisioner> bwProvisionerClass)
{
    this.numberOfCores_ = numberOfCores;
    this.mips_ = mips;
    this.ramSize_ = ramSize;
    this.bw_ = bw;
    this.storageCapacity_ = storageCapacity;
    
    this.cpuProvisionerClass_ = cpuProvisionerClass;
    this.ramProvisionerClass_ = ramProvisionerClass;
    this.vmSchedulerClass_ = vmSchedulerClass;
    this.bwProvisionerClass_ = bwProvisionerClass;
}
 
开发者ID:alessandroleite,项目名称:cloudsim-dsl,代码行数:17,代码来源:HostBuilder.java

示例4: using

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
@Override
public BwProviderTypeBuilder using()
{
    return new BwProviderTypeBuilder()
    {
        @Override
        public WithVmScheduler provisioner(Class<? extends BwProvisioner> bwProvisionerType)
        {
            bwProvisionerClass_ = bwProvisionerType;
            return new WithVmScheduler()
            {
                @Override
                public VmSchedulerBuilder using()
                {
                    return new VmSchedulerBuilderImpl();
                }
            };
        }
    };
}
 
开发者ID:alessandroleite,项目名称:cloudsim-dsl,代码行数:21,代码来源:HostBuilder.java

示例5: NetworkHost

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
public NetworkHost(
		int id,
		RamProvisioner ramProvisioner,
		BwProvisioner bwProvisioner,
		long storage,
		List<? extends Pe> peList,
		VmScheduler vmScheduler) {
	super(id, ramProvisioner, bwProvisioner, storage, peList, vmScheduler);

	packetrecieved = new ArrayList<NetworkPacket>();
	packetTosendGlobal = new ArrayList<NetworkPacket>();
	packetTosendLocal = new ArrayList<NetworkPacket>();

}
 
开发者ID:gmartinezramirez,项目名称:Fog-Computing-Mobile-Architecture,代码行数:15,代码来源:NetworkHost.java

示例6: PowerHost

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
/**
 * Instantiates a new host.
 * 
 * @param id the id
 * @param ramProvisioner the ram provisioner
 * @param bwProvisioner the bw provisioner
 * @param storage the storage
 * @param peList the pe list
 * @param vmScheduler the VM scheduler
 */
public PowerHost(
		int id,
		RamProvisioner ramProvisioner,
		BwProvisioner bwProvisioner,
		long storage,
		List<? extends Pe> peList,
		VmScheduler vmScheduler,
		PowerModel powerModel) {
	super(id, ramProvisioner, bwProvisioner, storage, peList, vmScheduler);
	setPowerModel(powerModel);
}
 
开发者ID:gmartinezramirez,项目名称:Fog-Computing-Mobile-Architecture,代码行数:22,代码来源:PowerHost.java

示例7: createHost

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
@Override
protected Host createHost(int hostId, int ram, long bw, long storage, long pes, double mips) {
	LinkedList<Pe> peList = new LinkedList<Pe>();
	int peId=0;
	for(int i=0;i<pes;i++) peList.add(new Pe(peId++,new PeProvisionerOverbooking(mips)));
	
	RamProvisioner ramPro = new RamProvisionerSimple(ram);
	BwProvisioner bwPro = new BwProvisionerOverbooking(bw);
	VmScheduler vmScheduler = new VmSchedulerTimeSharedOverbookingEnergy(peList);		
	Host newHost = new Host(hostId, ramPro, bwPro, storage, peList, vmScheduler);
	
	return newHost;		
}
 
开发者ID:gmartinezramirez,项目名称:Fog-Computing-Mobile-Architecture,代码行数:14,代码来源:OverbookingNetworkOperatingSystem.java

示例8: createHost

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
protected Host createHost(int hostId, int ram, long bw, long storage, long pes, double mips) {
	LinkedList<Pe> peList = new LinkedList<Pe>();
	int peId=0;
	for(int i=0;i<pes;i++) peList.add(new Pe(peId++,new PeProvisionerSimple(mips)));
	
	RamProvisioner ramPro = new RamProvisionerSimple(ram);
	BwProvisioner bwPro = new BwProvisionerSimple(bw);
	VmScheduler vmScheduler = new VmSchedulerTimeSharedEnergy(peList);		
	Host newHost = new Host(hostId, ramPro, bwPro, storage, peList, vmScheduler);
	
	return newHost;		
}
 
开发者ID:gmartinezramirez,项目名称:Fog-Computing-Mobile-Architecture,代码行数:13,代码来源:NetworkOperatingSystem.java

示例9: HostDynamicWorkload

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
/**
 * Instantiates a new host.
 * 
 * @param id the id
 * @param ramProvisioner the ram provisioner
 * @param bwProvisioner the bw provisioner
 * @param storage the storage
 * @param peList the pe list
 * @param vmScheduler the VM scheduler
 */
public HostDynamicWorkload(
		int id,
		RamProvisioner ramProvisioner,
		BwProvisioner bwProvisioner,
		long storage,
		List<? extends Pe> peList,
		VmScheduler vmScheduler) {
	super(id, ramProvisioner, bwProvisioner, storage, peList, vmScheduler);
	setUtilizationMips(0);
	setPreviousUtilizationMips(0);
}
 
开发者ID:gmartinezramirez,项目名称:Fog-Computing-Mobile-Architecture,代码行数:22,代码来源:HostDynamicWorkload.java

示例10: SDNHost

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
public SDNHost(
		RamProvisioner ramProvisioner,
		BwProvisioner bwProvisioner,
		long storage,
		List<? extends Pe> peList,
		VmScheduler vmScheduler,
		NetworkOperatingSystem nos){
	super(NodeUtil.assignAddress(), ramProvisioner, bwProvisioner, storage,peList,vmScheduler);
		
	//this.vms = new Hashtable<Integer,Vm>();
	this.middleboxes = new Hashtable<Integer, Middlebox>();
	this.forwardingTable = new ForwardingRule();
	this.routingTable = new RoutingTable();
}
 
开发者ID:jayjmin,项目名称:cloudsimsdn,代码行数:15,代码来源:SDNHost.java

示例11: createHost

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
public SDNHost createHost(int ram, long bw, long storage, long pes, double mips) {
	LinkedList<Pe> peList = new LinkedList<Pe>();
	int peId=0;
	for(int i=0;i<pes;i++) peList.add(new Pe(peId++,new PeProvisionerSimple(mips)));
	
	RamProvisioner ramPro = new RamProvisionerSimple(ram);
	BwProvisioner bwPro = new BwProvisionerSimple(bw);
	VmScheduler vmScheduler = new VmSchedulerTimeSharedEnergy(peList);		
	SDNHost newHost = new SDNHost(ramPro, bwPro, storage, peList, vmScheduler, this);
	
	return newHost;		
}
 
开发者ID:jayjmin,项目名称:cloudsimsdn,代码行数:13,代码来源:NetworkOperatingSystem.java

示例12: PowerHostExtra

import org.cloudbus.cloudsim.provisioners.BwProvisioner; //导入依赖的package包/类
public PowerHostExtra(int id, RamProvisioner ramProvisioner,
		BwProvisioner bwProvisioner, long storage,
		List<? extends Pe> peList, VmScheduler vmScheduler,
		PowerModel powerModel, double staticPower) {
	super(id, ramProvisioner, bwProvisioner, storage, peList, vmScheduler,
			powerModel);
	// TODO Auto-generated constructor stub
	this.staticPower = staticPower;

}
 
开发者ID:StVak,项目名称:cloudsimPowerStats,代码行数:11,代码来源:PowerHostExtra.java


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