org.almendra.janet.ade.executor
Class QueueSizeCategory

java.lang.Object
  extended by org.almendra.janet.ade.executor.QueueSizeCategory

public class QueueSizeCategory
extends java.lang.Object


Field Summary
protected  boolean concatenationIsOr
           
protected  int maxExecutingCommands
           
protected  int maxWaitingCommands
           
protected  int name
           
 
Constructor Summary
protected QueueSizeCategory()
          Creates a new QueueSizeCategory object.
  QueueSizeCategory(int name, int maxWaitingCommands, int maxExecutingCommands, boolean concatenationIsOr)
          Creates a new QueueSizeCategory object.
 
Method Summary
 int getMaxExecutingCommands()
           
 int getMaxWaitingCommands()
           
 int getName()
           
 boolean isConcatenationAnd()
           
 boolean isConcatenationOr()
           
 boolean isMaxExecutingCommandsArbitrary()
           
 boolean isMaxWaitingCommandsArbitrary()
           
 boolean match(int waitingCommandsCount, int executingCommandsCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected int name

maxWaitingCommands

protected int maxWaitingCommands

maxExecutingCommands

protected int maxExecutingCommands

concatenationIsOr

protected boolean concatenationIsOr
Constructor Detail

QueueSizeCategory

protected QueueSizeCategory()
Creates a new QueueSizeCategory object.


QueueSizeCategory

public QueueSizeCategory(int name,
                         int maxWaitingCommands,
                         int maxExecutingCommands,
                         boolean concatenationIsOr)
Creates a new QueueSizeCategory object.

Method Detail

getMaxExecutingCommands

public int getMaxExecutingCommands()
Returns:
Returns the maxExecutingCommands.

getMaxWaitingCommands

public int getMaxWaitingCommands()
Returns:
Returns the maxWaitingCommands.

getName

public int getName()
Returns:
Returns the name.

isMaxWaitingCommandsArbitrary

public boolean isMaxWaitingCommandsArbitrary()

isMaxExecutingCommandsArbitrary

public boolean isMaxExecutingCommandsArbitrary()

match

public boolean match(int waitingCommandsCount,
                     int executingCommandsCount)
Parameters:
i -
j -
Returns:

isConcatenationOr

public boolean isConcatenationOr()
Returns:
Returns the concatenationIsOr.

isConcatenationAnd

public boolean isConcatenationAnd()
Returns:
Returns the concatenationIsOr.