##################################################################

EnvInfo v1.1

Copyright (C) 2009 Frederic Roudaut


This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

###################################################################

com.envInfo
Class MemoryMeasurement

java.lang.Object
  extended by com.envInfo.MemoryMeasurement

public class MemoryMeasurement
extends java.lang.Object

Class used to represent a single Memory Measurement.

This class is an adaption of the one done by Nicolas Richasse for his Java Iperf frontend.


Field Summary
private  double end
           
private  double start
           
private  java.lang.String units
           
private  double value
           
 
Constructor Summary
MemoryMeasurement(double start, double end, double value, java.lang.String units)
          Constructor.
 
Method Summary
 double getEndTime()
          Return the end time.
 double getStartTime()
          Return the start time.
 java.lang.String getUnits()
          Return the measurement unit.
 double getValue()
          Return the measurement value.
 void print()
          Print the measurement content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

private double start

end

private double end

value

private double value

units

private java.lang.String units
Constructor Detail

MemoryMeasurement

public MemoryMeasurement(double start,
                         double end,
                         double value,
                         java.lang.String units)
Constructor.

Parameters:
start - the start time of the measurement.
end - the end time of the measurement.
value - the memory value.
units - the memory Units.
Method Detail

getStartTime

public double getStartTime()
Return the start time.

Returns:
the start time.

getEndTime

public double getEndTime()
Return the end time.

Returns:
the end time.

getValue

public double getValue()
Return the measurement value.

Returns:
the measurement value.

getUnits

public java.lang.String getUnits()
Return the measurement unit.

Returns:
the measurement unit.

print

public void print()
Print the measurement content.



##################################################################

EnvInfo v1.1

Copyright (C) 2009 Frederic Roudaut


This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

###################################################################