Interface Machine

    • Field Detail

      • NULL

        static final Machine NULL
        An attribute that implements the Null Object Design Pattern for Machine objects.
    • Method Detail

      • getBw

        Resource getBw()
        Gets the machine bandwidth (bw) capacity in Megabits/s.
        Returns:
        the machine bw capacity
      • getRam

        Resource getRam()
        Gets the machine memory resource in Megabytes.
        Returns:
        the machine memory
      • getStorage

        Resource getStorage()
        Gets the storage device of the machine with capacity in Megabytes.
        Returns:
        the machine storage device
      • getNumberOfPes

        long getNumberOfPes()
        Gets the overall number of Pes the machine has, that include PEs of all statuses, including failed PEs.
        Returns:
        the machine's number of PEs
      • getMips

        double getMips()
        Gets the individual MIPS capacity of any machine's Pe, considering that all PEs have the same capacity.
        Returns:
        the MIPS capacity of a single Pe
      • getTotalMipsCapacity

        double getTotalMipsCapacity()
        Gets total MIPS capacity of all PEs of the machine.
        Returns:
        the total MIPS of all PEs
      • getSimulation

        Simulation getSimulation()
        Gets the CloudSim instance that represents the simulation the Entity is related to.
        Returns:
      • validateCapacity

        static void validateCapacity​(double capacity)
        Validates a capacity for a machine resource.
        Parameters:
        capacity - the capacity to check