Package jline.lang

Class Region

java.lang.Object
jline.lang.Region
All Implemented Interfaces:
Serializable

public class Region extends Object implements Serializable
Collection of stations with constraints on the number of admitted jobs
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getGlobalMaxJobs

      public int getGlobalMaxJobs()
    • setGlobalMaxJobs

      public void setGlobalMaxJobs(int njobs)
    • getGlobalMaxMemory

      public double getGlobalMaxMemory()
    • setGlobalMaxMemory

      public void setGlobalMaxMemory(int memlim)
    • setGlobalMaxMemory

      public void setGlobalMaxMemory(double memlim)
    • setClassMaxJobs

      public void setClassMaxJobs(JobClass jobClass, int njobs)
    • getClassMaxJobs

      public int getClassMaxJobs(JobClass jobClass)
    • setClassMaxMemory

      public void setClassMaxMemory(JobClass jobClass, int memlim)
    • getClassMaxMemory

      public int getClassMaxMemory(JobClass jobClass)
    • setDropRule

      public void setDropRule(JobClass jobClass, DropStrategy strategy)
      Sets the drop strategy for a specific job class.
      Parameters:
      jobClass - the job class to configure
      strategy - the drop strategy to apply (DROP, WaitingQueue, BlockingAfterService, etc.)
    • setDropRule

      public void setDropRule(JobClass jobClass, boolean isDropEnabled)
      Sets the drop rule using a boolean for backwards compatibility.
      Parameters:
      jobClass - the job class to configure
      isDropEnabled - true for DROP strategy, false for WaitingQueue
    • getDropStrategy

      public DropStrategy getDropStrategy(JobClass jobClass)
      Gets the drop strategy for a specific job class.
      Parameters:
      jobClass - the job class to query
      Returns:
      the drop strategy for the job class
    • getDropRule

      public boolean getDropRule(JobClass jobClass)
      Gets the drop rule as a boolean for backwards compatibility. Returns true if the strategy is DROP, false otherwise.
      Parameters:
      jobClass - the job class to query
      Returns:
      true if drop is enabled, false otherwise
    • setClassSize

      public void setClassSize(JobClass jobClass, int size)
    • setClassSize

      public void setClassSize(JobClass jobClass, double size)
    • getClassSize

      public double getClassSize(JobClass jobClass)
    • setClassWeight

      public void setClassWeight(JobClass jobClass, double weight)
    • getClassWeight

      public double getClassWeight(JobClass jobClass)
    • getNodes

      public List<Node> getNodes()
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • setLinearConstraints

      public void setLinearConstraints(Matrix A, Matrix b)
      Sets general linear admission constraints An <= b.
      Parameters:
      A - constraint matrix (C x K) where C is the number of constraints and K is the number of classes
      b - capacity vector (C x 1)
    • getLinearConstraints

      public Matrix[] getLinearConstraints()
      Gets the linear admission constraints as the pair (A, b).
      Returns:
      a two-element array {A, b} holding the constraint matrix A (C x K) and the capacity vector b (C x 1); each entry is null if the corresponding constraint has not been set
    • hasLinearConstraints

      public boolean hasLinearConstraints()
      Checks whether linear constraints have been set.
      Returns:
      true if linear constraints are defined