com.foxsmart.csu.config.global.policymap.classmap
Class RandomDetectPrecedenceParams

java.lang.Object
  extended by com.foxsmart.csu.config.CiscoRouterConfigParser
      extended by com.foxsmart.csu.config.global.policymap.classmap.RandomDetectPrecedenceParams
All Implemented Interfaces:
java.io.Serializable

public class RandomDetectPrecedenceParams
extends CiscoRouterConfigParser

The RandomDetectPrecedenceParam class represents all the parameters that are associated with a policy map random detect precedence.

See Also:
Serialized Form

Field Summary
static java.lang.Integer MAX_DENOMINATOR
          The maximum mark probability denominator.
static java.lang.Integer MAX_THRESHOLD_PACKETS
          The maximum number of packets.
static java.lang.Integer MIN_DENOMINATOR
          The minimum mark probability denominator.
static java.lang.Integer MIN_THRESHOLD_PACKETS
          The minimum number of packets.
 
Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
log, NO, tokenIndex
 
Constructor Summary
RandomDetectPrecedenceParams()
          Constructs a bandwidth value object.
 
Method Summary
 java.lang.String generateIos()
          Generates the IOS statements associated with this "component".
 java.lang.Integer getMarkProbabilityDenominator()
          Gets the mark probability denominator.
 java.lang.Integer getMaxThreshold()
          Gets the maximum threshold.
 java.lang.Integer getMinThreshold()
          Gets the minimum threshold.
 void setMarkProbabilityDenominator(java.lang.Integer markProbabilityDenominator)
          Sets the mark probability denominator.
 void setMaxThreshold(java.lang.Integer maxThreshold)
          Sets the maximum threshold (number of packets).
 void setMinThreshold(java.lang.Integer minThreshold)
          Sets the minimum threshold (number of packets).
 void validate()
          Validates that this "component" is valid.
 
Methods inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser
checkExists, checkLineComplete, checkNotEmpty, checkRange, checkTokenCount, checkTokenCount, checkTokenMatch, checkTokenMatch, decrementTokenIndex, generateCommands, getBigDecimalNumberFromString, getDoubleNumberFromString, getEnum, getHexadecimalNumberFromString, getIntegerNumberFromString, getIpAddressFromString, getLine, getLongNumberFromString, getMacAddressFromString, getNextOptionalToken, getNextToken, getToken, getTokenIndex, getTokens, getTotalIndentedLines, getTotalLines, incrementTokenIndex, invalidConfiguration, invalidTokenFound, isEmpty, moreIndentedLines, moreLines, moreTokens, removeLines, resetTokenIndex, setTokenIndex, tokensLeft
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_THRESHOLD_PACKETS

public static final java.lang.Integer MIN_THRESHOLD_PACKETS
The minimum number of packets.


MAX_THRESHOLD_PACKETS

public static final java.lang.Integer MAX_THRESHOLD_PACKETS
The maximum number of packets.


MIN_DENOMINATOR

public static final java.lang.Integer MIN_DENOMINATOR
The minimum mark probability denominator.


MAX_DENOMINATOR

public static final java.lang.Integer MAX_DENOMINATOR
The maximum mark probability denominator.

Constructor Detail

RandomDetectPrecedenceParams

public RandomDetectPrecedenceParams()
Constructs a bandwidth value object.

Method Detail

setMinThreshold

public void setMinThreshold(java.lang.Integer minThreshold)
Sets the minimum threshold (number of packets). Valid values are 1-1049.

Parameters:
minThreshold - The minimum threshold.

getMinThreshold

public java.lang.Integer getMinThreshold()
Gets the minimum threshold.

Returns:
the minimum threshold.

setMaxThreshold

public void setMaxThreshold(java.lang.Integer maxThreshold)
Sets the maximum threshold (number of packets). Valid values are 1-1049.

Parameters:
maxThreshold - The maximum threshold.

getMaxThreshold

public java.lang.Integer getMaxThreshold()
Gets the maximum threshold.

Returns:
the maximum threshold.

setMarkProbabilityDenominator

public void setMarkProbabilityDenominator(java.lang.Integer markProbabilityDenominator)
Sets the mark probability denominator. Valid values are 1-65535.

Parameters:
markProbabilityDenominator - The mark probability denominator.

getMarkProbabilityDenominator

public java.lang.Integer getMarkProbabilityDenominator()
Gets the mark probability denominator.

Returns:
the mark probability denominator.

validate

public void validate()
              throws InvalidConfigurationException
Validates that this "component" is valid.

Throws:
InvalidConfigurationException - if the configuration is invalid.

generateIos

public java.lang.String generateIos()
                             throws InvalidConfigurationException
Generates the IOS statements associated with this "component".

Returns:
the IOS statements.
Throws:
InvalidConfigurationException - if the configuration is invalid.


Copyright © 2005-2008 Fox Smart, Inc. All Rights Reserved.