Class MemoryBinaryMeasurementsDaoImpl<V,Q extends javax.measure.quantity.Quantity>
java.lang.Object
org.palladiosimulator.edp2.dao.impl.Edp2DaoImpl
org.palladiosimulator.edp2.dao.impl.AbstractMeasurementsDaoImpl<V,Q>
org.palladiosimulator.edp2.dao.memory.impl.MemoryBinaryMeasurementsDaoImpl<V,Q>
- All Implemented Interfaces:
BinaryMeasurementsDao<V,,Q> Edp2Dao,MeasurementsDao<V,Q>
public class MemoryBinaryMeasurementsDaoImpl<V,Q extends javax.measure.quantity.Quantity>
extends AbstractMeasurementsDaoImpl<V,Q>
implements BinaryMeasurementsDao<V,Q>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the connection to the data store.voidflush()Write all non-persisted data to disk.javax.measure.unit.Unit<Q>getUnit()Returns the unit in which all measurements are stored.voidopen()Opens the connection to the data store and makes it's data accessible.voidSets the unit in which all measurements are stored.Methods inherited from class org.palladiosimulator.edp2.dao.impl.AbstractMeasurementsDaoImpl
deserialize, serializeMethods inherited from class org.palladiosimulator.edp2.dao.impl.Edp2DaoImpl
canClose, canDelete, canOpen, delete, isDeleted, isOpen, setClosed, setDeleted, setOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.palladiosimulator.edp2.dao.Edp2Dao
canClose, canDelete, canOpen, delete, isDeleted, isOpenMethods inherited from interface org.palladiosimulator.edp2.dao.MeasurementsDao
deserialize, serialize
-
Constructor Details
-
MemoryBinaryMeasurementsDaoImpl
-
-
Method Details
-
getMeasurements
- Specified by:
getMeasurementsin interfaceMeasurementsDao<V,Q extends javax.measure.quantity.Quantity> - Returns:
- Observed measurements.
-
flush
public void flush()Description copied from interface:Edp2DaoWrite all non-persisted data to disk. -
open
Description copied from interface:Edp2DaoOpens the connection to the data store and makes it's data accessible.- Specified by:
openin interfaceEdp2Dao- Overrides:
openin classEdp2DaoImpl- Throws:
DataNotAccessibleException- Errors when initializing the data access.
-
close
Description copied from interface:Edp2DaoCloses the connection to the data store. If necessary, data is persisted before closing.- Specified by:
closein interfaceEdp2Dao- Overrides:
closein classEdp2DaoImpl- Throws:
DataNotAccessibleException- Errors when accessing data.
-
getUnit
Description copied from interface:BinaryMeasurementsDaoReturns the unit in which all measurements are stored.- Specified by:
getUnitin interfaceBinaryMeasurementsDao<V,Q extends javax.measure.quantity.Quantity> - Returns:
- The unit.
-
setUnit
Description copied from interface:BinaryMeasurementsDaoSets the unit in which all measurements are stored.- Specified by:
setUnitin interfaceBinaryMeasurementsDao<V,Q extends javax.measure.quantity.Quantity> - Parameters:
unit- The unit.
-