Class MemoryFeature
- java.lang.Object
-
- es.bsc.dataclay.util.management.classmgr.features.Feature
-
- es.bsc.dataclay.util.management.classmgr.features.QuantitativeFeature
-
- es.bsc.dataclay.util.management.classmgr.features.MemoryFeature
-
- All Implemented Interfaces:
Comparable<QuantitativeFeature>
public final class MemoryFeature extends QuantitativeFeature
This class represents all Memory Features (capacity,...).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class es.bsc.dataclay.util.management.classmgr.features.Feature
Feature.FeatureType
-
-
Constructor Summary
Constructors Constructor Description MemoryFeature()
Empty constructor for deserialization.MemoryFeature(int megabytes)
Creates a new MemoryFeature with the given capacity
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(QuantitativeFeature o)
boolean
equals(Object obj)
int
getCapacityInMB()
UUID
getId()
int
hashCode()
void
setCapacityInMB(int newCapacityInMb)
void
setId(UUID theid)
String
toString()
-
-
-
Method Detail
-
getCapacityInMB
public int getCapacityInMB()
- Returns:
- the capacity of the memory
-
setCapacityInMB
public void setCapacityInMB(int newCapacityInMb)
- Parameters:
newCapacityInMb
- the capacity to be set
-
compareTo
public int compareTo(QuantitativeFeature o)
-
getId
public UUID getId()
- Returns:
- the id
-
setId
public void setId(UUID theid)
- Parameters:
theid
- the id to set
-
-