Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 71 additions & 117 deletions src/main/java/cloudreports/models/CloudletRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@

import java.io.Serializable;

/**
* Represents a list of cloudlets of a customer.
*
* @author Thiago T. Sá
* @since 1.0
*/
/// Represents a list of cloudlets of a customer.
///
/// @author Thiago T. Sá
/// @since 1.0
public final class CloudletRegistry implements Serializable{
private long id;
private double timeZone;
Expand All @@ -44,201 +42,157 @@ public CloudletRegistry() {
amount = 1;
}

/**
* Gets the profile's id.
*
* @return the profile's id.
*/
/// Gets the profile's id.
///
/// @return the profile's id.
public long getId() {
return id;
}

/**
* Sets the profile's id.
*
* @param id the profile's id.
*/
/// Sets the profile's id.
///
/// @param id the profile's id.
public void setId(long id) {
this.id = id;
}

/**
* Gets the profile's time zone.
*
* @return the profile's time zone.
*/
/// Gets the profile's time zone.
///
/// @return the profile's time zone.
public double getTimeZone() {
return timeZone;
}

/**
* Sets the profile's time zone.
*
* @param timeZone the profile's time zone.
*/
/// Sets the profile's time zone.
///
/// @param timeZone the profile's time zone.
public void setTimeZone(double timeZone) {
this.timeZone = timeZone;
}

/**
* Gets the number of cloudlets.
*
* @return the number of cloudlets.
*/
/// Gets the number of cloudlets.
///
/// @return the number of cloudlets.
public int getAmount() {
return amount;
}

/**
* Sets the number of cloudlets.
*
* @param amount the number of cloudlets.
*/
/// Sets the number of cloudlets.
///
/// @param amount the number of cloudlets.
public void setAmount(int amount) {
this.amount = amount;
}

/**
* Gets the maximum length of a cloudlet.
*
* @return the maximum length of a cloudlet.
*/
/// Gets the maximum length of a cloudlet.
///
/// @return the maximum length of a cloudlet.
public long getLength() {
return length;
}

/**
* Sets the maximum length of a cloudlet.
*
* @param length the maximum length of a cloudlet.
*/
/// Sets the maximum length of a cloudlet.
///
/// @param length the maximum length of a cloudlet.
public void setLength(long length) {
this.length = length;
}

/**
* Gets the cloudlets' file size.
*
* @return the cloudlets' file size.
*/
/// Gets the cloudlets' file size.
///
/// @return the cloudlets' file size.
public long getFileSize() {
return fileSize;
}

/**
* Sets the cloudlets' file size.
*
* @param fileSize the cloudlets' file size.
*/
/// Sets the cloudlets' file size.
///
/// @param fileSize the cloudlets' file size.
public void setFileSize(long fileSize) {
this.fileSize = fileSize;
}

/**
* Gets the cloudlets' output size.
*
* @return the cloudlets' output size.
*/
/// Gets the cloudlets' output size.
///
/// @return the cloudlets' output size.
public long getOutputSize() {
return outputSize;
}

/**
* Sets the cloudlets' output size.
*
* @param outputSize the cloudlets' output size.
*/
/// Sets the cloudlets' output size.
///
/// @param outputSize the cloudlets' output size.
public void setOutputSize(long outputSize) {
this.outputSize = outputSize;
}

/**
* Gets the number of processing elements required to run a cloudlet.
*
* @return the number of processing elements required to run a cloudlet.
*/
/// Gets the number of processing elements required to run a cloudlet.
///
/// @return the number of processing elements required to run a cloudlet.
public int getPes() {
return pes;
}

/**
* Sets the number of processing elements required to run a cloudlet.
*
* @param pesNumber the number of processing elements required to run
* a cloudlet.
*/
/// Sets the number of processing elements required to run a cloudlet.
///
/// @param pesNumber the number of processing elements required to run
/// a cloudlet.
public void setPes(int pesNumber) {
this.pes = pesNumber;
}

/**
* Gets the class name suffix of the Cloudlets's CPU utilization model.
*
* @return
*/
/// Gets the class name suffix of the Cloudlets's CPU utilization model.
///
/// @return
public String getUtilizationModelCpu() {
return utilizationModelCpu;
}

/**
* Sets the class name suffix of the Cloudlets's CPU utilization model.
*
* @param utilizationModelCpu the class name suffix to set
*/
/// Sets the class name suffix of the Cloudlets's CPU utilization model.
///
/// @param utilizationModelCpu the class name suffix to set
public void setUtilizationModelCpu(String utilizationModelCpu) {
this.utilizationModelCpu = utilizationModelCpu;
}

/**
* Gets the class name suffix of the Cloudlets's RAM utilization model.
*
* @return
*/
/// Gets the class name suffix of the Cloudlets's RAM utilization model.
///
/// @return
public String getUtilizationModelRam() {
return utilizationModelRam;
}

/**
* Sets the class name suffix of the Cloudlets's RAM utilization model.
*
* @param utilizationModelRam the class name suffix to set
*/
/// Sets the class name suffix of the Cloudlets's RAM utilization model.
///
/// @param utilizationModelRam the class name suffix to set
public void setUtilizationModelRam(String utilizationModelRam) {
this.utilizationModelRam = utilizationModelRam;
}

/**
* Gets the class name suffix of the Cloudlets's bandwidth utilization model.
*
* @return
*/
/// Gets the class name suffix of the Cloudlets's bandwidth utilization model.
///
/// @return
public String getUtilizationModelBw() {
return utilizationModelBw;
}

/**
* Sets the class name suffix of the Cloudlets's bandwidth utilization model.
*
* @param utilizationModelBw the class name suffix to set
*/
/// Sets the class name suffix of the Cloudlets's bandwidth utilization model.
///
/// @param utilizationModelBw the class name suffix to set
public void setUtilizationModelBw(String utilizationModelBw) {
this.utilizationModelBw = utilizationModelBw;
}

/**
* Gets the time to send the next cloudlet.
*
* @return the time to send the next cloudlet.
*/
/// Gets the time to send the next cloudlet.
///
/// @return the time to send the next cloudlet.
public double getSubmissionDelay() {
return submissionDelay;
}

/**
* Sets the time to send the next cloudlet.
*
* @param submissionDelay the time to send the next cloudlet.
*/
/// Sets the time to send the next cloudlet.
///
/// @param submissionDelay the time to send the next cloudlet.
public void setSubmissionDelay(double submissionDelay) {
this.submissionDelay = submissionDelay;
}
Expand Down
Loading
Loading