Package jline.lang
Class Region
java.lang.Object
jline.lang.Region
- All Implemented Interfaces:
Serializable
Collection of stations with constraints on the number of admitted jobs
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetClassMaxJobs(JobClass jobClass) intgetClassMaxMemory(JobClass jobClass) intgetClassSize(JobClass jobClass) doublegetClassWeight(JobClass jobClass) Gets the linear constraint matrix A.Gets the linear constraint vector b.booleangetDropRule(JobClass jobClass) Gets the drop rule as a boolean for backwards compatibility.getDropStrategy(JobClass jobClass) Gets the drop strategy for a specific job class.intintgetName()getNodes()booleanChecks whether linear constraints have been set.voidsetClassMaxJobs(JobClass jobClass, int njobs) voidsetClassMaxMemory(JobClass jobClass, int memlim) voidsetClassSize(JobClass jobClass, int size) voidsetClassWeight(JobClass jobClass, double weight) voidsetDropRule(JobClass jobClass, boolean isDropEnabled) Sets the drop rule using a boolean for backwards compatibility.voidsetDropRule(JobClass jobClass, DropStrategy strategy) Sets the drop strategy for a specific job class.voidsetGlobalMaxJobs(int njobs) voidsetGlobalMaxMemory(int memlim) voidsetLinearConstraints(Matrix A, Matrix b) Sets general linear admission constraints An <= b.void
-
Field Details
-
UNBOUNDED
public static final int UNBOUNDED- See Also:
-
nodes
-
classes
-
classMaxJobs
-
classMaxMemory
-
dropRule
-
classSize
-
classWeight
-
-
Constructor Details
-
Region
-
-
Method Details
-
getGlobalMaxJobs
public int getGlobalMaxJobs() -
setGlobalMaxJobs
public void setGlobalMaxJobs(int njobs) -
getGlobalMaxMemory
public int getGlobalMaxMemory() -
setGlobalMaxMemory
public void setGlobalMaxMemory(int memlim) -
setClassMaxJobs
-
getClassMaxJobs
-
setClassMaxMemory
-
getClassMaxMemory
-
setDropRule
Sets the drop strategy for a specific job class.- Parameters:
jobClass- the job class to configurestrategy- the drop strategy to apply (DROP, WaitingQueue, BlockingAfterService, etc.)
-
setDropRule
Sets the drop rule using a boolean for backwards compatibility.- Parameters:
jobClass- the job class to configureisDropEnabled- true for DROP strategy, false for WaitingQueue
-
getDropStrategy
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
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
-
getClassSize
-
setClassWeight
-
getClassWeight
-
getNodes
-
getName
-
setName
-
setLinearConstraints
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 classesb- capacity vector (C x 1)
-
getConstraintA
Gets the linear constraint matrix A.- Returns:
- the constraint matrix A, or null if not set
-
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
-