Class BasicMachine

  • Direct Known Subclasses:
    CommonMachine

    public class BasicMachine
    extends java.lang.Object
    How much memory, and how many threads share that memory. Used to describe either total system resources (system RAM and total number of threads handled by the processors) or a cache (processor's L1, L2 or L3 cache).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String BYTES  
      private static java.lang.String GIGA  
      private static java.lang.String KILO  
      private static java.lang.String MEGA  
      long memory  
      private static java.lang.String THREAD  
      int threads  
      private static java.lang.String THREADS  
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicMachine​(long memoryBytes, int nbThreads)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BasicMachine

        public BasicMachine​(long memoryBytes,
                            int nbThreads)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object