Class Measurement<E>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.measurement.Measurement<E>
-
- Type Parameters:
E
- the measuring point's type (i.e. the type of the probed element)
public class Measurement<E> extends Object
-
-
Constructor Summary
Constructors Constructor Description Measurement(Object what, MeasuringPoint<E> where, Object who, double value, double when, Metadata... metadata)
Constructs a new measurement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMetadata(Metadata... globalMetadata)
void
addMetadata(List<Metadata> globalMetadata)
boolean
equals(Object obj)
Metadata[]
getMetadata()
double
getValue()
Object
getWhat()
double
getWhen()
MeasuringPoint<E>
getWhere()
Object
getWho()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Measurement
public Measurement(Object what, MeasuringPoint<E> where, Object who, double value, double when, Metadata... metadata)
Constructs a new measurement.- Parameters:
what
- the measured metric or property (e.g. response time)where
- the measuring point (e.g. a reference to the method whose response time is to be measured)who
- the trigger, i.e. the element that caused this measurement (e.g. a specific process/thread/request)value
- the measured value (unit could be stored as metadata, if desired)when
- the point in time this measurement refers tometadata
- optional data to characterize this measurement
-
-