Class Buffer
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.measurement.r.Buffer
-
public class Buffer extends Object
Buffers multiple measurements waiting to be transferred to R later on.
-
-
Constructor Summary
Constructors Constructor Description Buffer(int capacity, PropertyExtractor idExtractors, PropertyExtractor nameExtractors, PropertyExtractor typeExtractors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Column<?>>
getColumns()
int
getSize()
double[]
getValue()
Column<String>
getWhat()
double[]
getWhen()
BufferPart
getWhereFirst()
Column<String>
getWhereProperty()
BufferPart
getWhereSecond()
BufferPart
getWho()
boolean
isFull()
<E> boolean
put(Measurement<?> m)
Adds a measurement to this buffer.protected static String[]
shrinkArray(String[] src, int size)
void
shrinkToSize()
-
-
-
Constructor Detail
-
Buffer
public Buffer(int capacity, PropertyExtractor idExtractors, PropertyExtractor nameExtractors, PropertyExtractor typeExtractors)
-
-
Method Detail
-
put
public <E> boolean put(Measurement<?> m)
Adds a measurement to this buffer.- Parameters:
m
- the measurement to be added- Returns:
-
shrinkToSize
public void shrinkToSize()
-
isFull
public boolean isFull()
-
getWhereFirst
public BufferPart getWhereFirst()
-
getWhereSecond
public BufferPart getWhereSecond()
-
getWho
public BufferPart getWho()
-
getValue
public double[] getValue()
-
getWhen
public double[] getWhen()
-
getSize
public int getSize()
-
getColumns
public Collection<Column<?>> getColumns()
-
-