|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxsmart.csu.config.CiscoRouterConfigParser
com.foxsmart.csu.config.global.policymap.classmap.BandwidthValue
public class BandwidthValue
The BandwidthValue class represents a bandwidth in Kbps.
| Field Summary | |
|---|---|
static java.lang.Integer |
MAX_BANDWIDTH_KBPS
The maximum bandwidth in Kbps. |
static java.lang.Integer |
MIN_BANDWIDTH_KBPS
The minimum bandwidth in Kbps. |
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
log, NO, tokenIndex |
| Constructor Summary | |
|---|---|
BandwidthValue()
Constructs a bandwidth value object. |
|
| Method Summary | |
|---|---|
java.lang.String |
generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
|
java.lang.String |
generateIos()
|
java.lang.Integer |
getBandwidth()
Gets the bandwidth value. |
void |
setBandwidth(java.lang.Integer bandwidth)
Sets the bandwidth value in Kbps. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Integer MIN_BANDWIDTH_KBPS
public static final java.lang.Integer MAX_BANDWIDTH_KBPS
| Constructor Detail |
|---|
public BandwidthValue()
| Method Detail |
|---|
public void setBandwidth(java.lang.Integer bandwidth)
setBandwidth in interface Bandwidthbandwidth - The bandwidth.public java.lang.Integer getBandwidth()
getBandwidth in interface Bandwidth
public void validate()
throws InvalidConfigurationException
validate in interface BandwidthInvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponent
public java.lang.String generateIos()
throws InvalidConfigurationException
generateIos in interface BandwidthInvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponent
public java.lang.String generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
throws InvalidConfigurationException
generateDeleteIos in interface BandwidthupdatedCiscoRouterConfig - the updated Cisco router configuration.
InvalidConfigurationException - if the configuration is invalid.MultiLineComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||