Class MemoryFeature

    • Constructor Detail

      • MemoryFeature

        public MemoryFeature()
        Empty constructor for deserialization.
      • MemoryFeature

        public MemoryFeature​(int megabytes)
        Creates a new MemoryFeature with the given capacity
        Parameters:
        megabytes - capacity in megabytes
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getId

        public UUID getId()
        Returns:
        the id
      • setId

        public void setId​(UUID theid)
        Parameters:
        theid - the id to set