hu.mta.sztaki.lpds.cloud.simulator.util
Class PowerTransitionGenerator
java.lang.Object
hu.mta.sztaki.lpds.cloud.simulator.util.PowerTransitionGenerator
public class PowerTransitionGenerator
- extends Object
This helper class provides a simple way to generate the necessary power
transition functions for physical machine behavior.
WARNING: this is not intended to be used for realistic modeling of physical
machines but allows a simplified creation of physical machines for which the
power model is not expected to be used.
- Author:
- "Gabor Kecskemeti, Laboratory of Parallel and Distributed Systems,
MTA SZTAKI (c) 2014"
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PowerTransitionGenerator
public PowerTransitionGenerator()
generateTransitions
public static EnumMap<PhysicalMachine.PowerStateKind,EnumMap<PhysicalMachine.State,PowerState>> generateTransitions(double minpower,
double idlepower,
double maxpower,
double diskDivider,
double netDivider)
throws SecurityException,
InstantiationException,
IllegalAccessException,
NoSuchFieldException
- The generator function that derives the power transition and power state
definitions from a few simple parameters. The generated power states will
all be based on the linear consumption model (except during power off
state).
- Parameters:
minpower
- the power (in W) to be drawn by the PM while it is completely
switched off (but plugged into the wall socket)idlepower
- the power (in W) to be drawn by the PM's CPU while it is
running but not doing any useful tasks.maxpower
- the power (in W) to be drawn by the PM's CPU if it's CPU is
completely utilizeddiskDivider
- the ratio of the PM's disk power draw values compared to the
it's CPU's power draw valuesnetDivider
- the ratio of the PM's network power draw values compared to
the it's CPU's power draw values
- Returns:
- a power state setup useful for instantiating PMs
- Throws:
SecurityException
- if the power state to be created failed to instantiate
properly
InstantiationException
- if the power state to be created failed to instantiate
properly
IllegalAccessException
- if the power state to be created failed to instantiate
properly
NoSuchFieldException
- if the power state to be created failed to instantiate
properly
Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.