Beispiel #1
0
 public FogDevice(Guid id, int userId, double mips, int numberOfPes, int ram, long upBw, long downBw, long size, int Storage, string name, string dataType,
                  CloudletScheduler cloudletScheduler, GeoLocation geoLocation, bool isActive, double busyPower, double idlepower, double ProcessorBurstTime)
 {
     ID                   = id;
     MIPS                 = mips;
     NumberOfPes          = numberOfPes;
     RAM                  = ram;
     UpBW                 = upBw;
     DownBW               = downBw;
     Size                 = size;
     Storage              = storage;
     Name                 = name;
     DataType             = dataType;
     CloudletScheduler    = cloudletScheduler;
     BeingInstantiated    = true;
     CurrentAllocatedBw   = 0;
     CurrentAllocatedMips = 0;
     CurrentAllocatedRam  = 0;
     CurrentAllocatedSize = 0;
     GeoLocation          = geoLocation;
     DistanceFromTuple    = 0.0;
     IsActive             = isActive;
     BusyPower            = busyPower;
     IdlePower            = idlepower;
     PowerConsumption     = new List <PowerConsumption>();
     AvailablePower       = 100;
     processorBurstTime   = ProcessorBurstTime;
 }
Beispiel #2
0
 public Tuple(Guid id, int userId, double mips, int numberOfPes, int ram, long bw, long size, string name, string dataType, int dataPercentage, double delay, string priority,
              CloudletScheduler cloudletScheduler, GeoLocation geoLocation, bool isReversed, string deviceType, double BTime, double?BTimeDifference)
 {
     ID                     = id;
     MIPS                   = mips;
     NumberOfPes            = numberOfPes;
     RAM                    = ram;
     BW                     = bw;
     Size                   = size;
     Name                   = name;
     DataType               = dataType;
     Delay                  = delay;
     Priority               = priority;
     CloudletScheduler      = cloudletScheduler;
     BeingInstantiated      = true;
     CurrentAllocatedBw     = 0;
     CurrentAllocatedMips   = null;
     CurrentAllocatedRam    = 0;
     CurrentAllocatedSize   = 0;
     GeoLocation            = geoLocation;
     DataPercentage         = dataPercentage;
     IsReversed             = isReversed;
     DeviceType             = deviceType;
     InternalProcessingTime = 0;
     TupleTimes             = new List <TupleTimes>();
     burstTime              = BTime;
     burstTimeDiffernce     = BTimeDifference;
     IsJobFinished          = false;
     BurstNumber            = 0;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CloudDevice"/> class.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="userId">The user identifier.</param>
 /// <param name="mips">The mips.</param>
 /// <param name="numberOfPes">The number of pes.</param>
 /// <param name="ram">The ram.</param>
 /// <param name="upBw">Up bw.</param>
 /// <param name="downBw">Down bw.</param>
 /// <param name="size">The size.</param>
 /// <param name="storage">The storage.</param>
 /// <param name="name">The name.</param>
 /// <param name="cloudletScheduler">The cloudlet scheduler.</param>
 /// <param name="geoLocation">The geo location.</param>
 public CloudDevice(Guid id, int userId, double mips, int numberOfPes, int ram, long upBw, long downBw, long size, int storage, string name, CloudletScheduler cloudletScheduler, GeoLocation geoLocation, bool isActive)
 {
     ID                   = id;
     MIPS                 = mips;
     NumberOfPes          = numberOfPes;
     RAM                  = ram;
     UpBW                 = upBw;
     DownBW               = downBw;
     Size                 = size;
     Storage              = storage;
     Name                 = name;
     CloudletScheduler    = cloudletScheduler;
     BeingInstantiated    = true;
     CurrentAllocatedBw   = 0;
     CurrentAllocatedMips = 0;
     CurrentAllocatedRam  = 0;
     CurrentAllocatedSize = 0;
     GeoLocation          = geoLocation;
     DistanceFromTuple    = 0.0;
     IsActive             = isActive;
 }
Beispiel #4
0
 public VM(Guid id, int userId, double mips, int numberOfPes, int ram, long bw, long size, string name,
           CloudletScheduler cloudletScheduler, GeoLocation geoLocation)
 {
     ID                   = id;
     MIPS                 = mips;
     NumberOfPes          = numberOfPes;
     RAM                  = ram;
     BW                   = bw;
     Size                 = size;
     Name                 = name;
     DataType             = dataType;
     CloudletScheduler    = cloudletScheduler;
     BeingInstantiated    = true;
     CurrentAllocatedBw   = 0;
     CurrentAllocatedMips = null;
     CurrentAllocatedRam  = 0;
     CurrentAllocatedSize = 0;
     GeoLocation          = geoLocation;
     DataPercentage       = dataPercentage;
     IsReversed           = isReversed;
     DeviceType           = deviceType;
 }