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 int getGlobalMaxMemory()
    • setGlobalMaxMemory

      public void setGlobalMaxMemory(int 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)
    • getClassSize

      public int 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)
    • getConstraintA

      public Matrix getConstraintA()
      Gets the linear constraint matrix A.
      Returns:
      the constraint matrix A, or null if not set
    • getConstraintB

      public Matrix getConstraintB()
      Gets the linear constraint vector b.
      Returns:
      the constraint vector b, or null if not set
    • hasLinearConstraints

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