|
||||||||||
| 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.CiscoRouterConfigComponent
com.foxsmart.csu.config.global.mapclassframerelay.FrameRelayTrafficRateComponent
public class FrameRelayTrafficRateComponent
The frame relay traffic rate class sets the VC traffic rate for frame relay.
| Field Summary | |
|---|---|
static java.lang.String |
FRAME_RELAY
|
static java.lang.Integer |
MAX_CIR
The maximum CIR. |
static java.lang.Integer |
MAX_PEAK_RATE
The maximum Peak Rate. |
static java.lang.Integer |
MIN_CIR
The minimum CIR. |
static java.lang.Integer |
MIN_PEAK_RATE
The minimum Peak Rate. |
static java.lang.String |
TRAFFIC_RATE
|
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigComponent |
|---|
commentComponent, componentMap, log, parentComponent |
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
NO, tokenIndex |
| Constructor Summary | |
|---|---|
FrameRelayTrafficRateComponent()
Constructs a frame relay traffic rate object. |
|
| Method Summary | |
|---|---|
java.util.List |
buildFromIos(java.util.List configLines)
Parse and populate the specific CiscoRouterComponent object based on the passed in individual lines of the IOS configuration. |
Commands |
generateIos()
Returns the IOS configuration commands for this component. |
java.lang.Integer |
getCir()
Gets the committed information rate (CIR). |
java.lang.Integer |
getPeakRate()
Gets the peak rate. |
void |
setCir(java.lang.Integer cir)
Sets the committed information rate (CIR). |
void |
setPeakRate(java.lang.Integer peakRate)
Sets the peak rate (CIR + EIR). |
void |
validate()
Validates this object to ensure it contains a valid IOS configuration. |
| 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.String FRAME_RELAY
public static final java.lang.String TRAFFIC_RATE
public static final java.lang.Integer MIN_CIR
public static final java.lang.Integer MAX_CIR
public static final java.lang.Integer MIN_PEAK_RATE
public static final java.lang.Integer MAX_PEAK_RATE
| Constructor Detail |
|---|
public FrameRelayTrafficRateComponent()
| Method Detail |
|---|
public void setCir(java.lang.Integer cir)
cir - The committed information rate.public java.lang.Integer getCir()
public void setPeakRate(java.lang.Integer peakRate)
peakRate - The peak rate.public java.lang.Integer getPeakRate()
public java.util.List buildFromIos(java.util.List configLines)
throws InvalidConfigurationException
CiscoRouterConfigComponent
buildFromIos in class CiscoRouterConfigComponentconfigLines - The list of IOS configuration lines.
InvalidConfigurationException - if the IOS configuration can not be parsed for any reason.CiscoRouterConfigComponent
public void validate()
throws InvalidConfigurationException
CiscoRouterConfigComponent
validate in class CiscoRouterConfigComponentInvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponent
public Commands generateIos()
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateIos in class CiscoRouterConfigComponentInvalidConfigurationException - if the IOS configuration is invalid and the IOS string can not be generated.
The validate() method is used to determine if the configuration is valid.CiscoRouterConfigComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||