Interface IActiveResource

    • Method Detail

      • process

        void process​(ISchedulableProcess process,
                     int resourceServiceId,
                     Map<String,​Serializable> parameterMap,
                     double demand)
        Processes the specified demand of the process. With additional parameters for the resource.
      • getRemainingDemand

        double getRemainingDemand​(ISchedulableProcess process)
        Returns the remaining demand for a process.
      • updateDemand

        void updateDemand​(ISchedulableProcess process,
                          double demand)
        Update (currently consuming) demand for a process.
      • start

        void start()
        Creates the initial events for the resource.
      • getId

        String getId()
        Unique identifier of the resource.
        Returns:
      • getName

        String getName()
        Name of the resource.
        Returns:
      • stop

        void stop()
      • getQueueLengthFor

        int getQueueLengthFor​(SchedulerEntity schedulerEntity,
                              int coreID)
        Get the number of processes currently having requests issued to this resource and waiting for the request to complete.
        Parameters:
        schedulerEntity -
        Returns: