|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.common.BWControllerArray
public class BWControllerArray
The array of bandwidth controlers. Bandwidth controllers in the array can be
modified so that the bandwidth accumulated by them will also be acumulated in
the total bandwidth controller.
BWController,
DeprecatedPackageData,
Serialized Form| Field Summary | |
|---|---|
static int |
DEFAULT_DOWNSTREAM_BWC_IDX
default up stream and down stream BWC index * |
static java.lang.String |
DEFAULT_DOWNSTREAM_BWC_NAME
|
static int |
DEFAULT_UPSTREAM_BWC_IDX
|
static java.lang.String |
DEFAULT_UPSTREAM_BWC_NAME
|
boolean |
isAddOnPackage
|
| Constructor Summary | |
|---|---|
BWControllerArray()
BWControllerArray Constructor. |
|
| Method Summary | |
|---|---|
void |
addBwcForCombo(BWControllerArray other)
This method will called to update bwc info in a combo package, whenever there is any add or delete of bwc in any one of packages available in combo |
void |
addNewBWCController(BWController bwc)
This method will be called to add BWC in combo package |
int |
addNewBWController()
Adds an aggregated BWController. |
BWController |
addNewBWController(int index)
Adds an aggregated BWController in a specific index in the BWController array. |
java.lang.Object |
clone()
Producing an identical object to this object. |
boolean |
contains(BWController item)
Checks if a certain BWController exists in this list. |
boolean |
contains(java.lang.String bwcName)
Checks if an BWController with bears the specific name exists in this list. |
BWController |
findByName(java.lang.String name)
find the BWC that has the specified name. |
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Method fromStream |
BWController |
getAt(int index)
Gets the BWController this list has in a specific index. |
int |
getIndexOfItem(java.lang.String name)
Gets the index of the BWController in this list which has the specific name. |
int |
getSize()
Gets the size of this list. |
com.pcube.apps.engage.foundations.VetoableCollectionChangeListener |
getVetoChangeListener()
|
boolean |
isAddOnPackage()
|
boolean |
isBWCAdded(int bwcIndex)
Checks if the BWController in a specific index in the BWController array was added. |
java.util.Iterator |
iterator()
|
java.util.Iterator |
iterator(int direction)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int direction)
|
void |
remove(BWController bwc)
This method will remove the corresponding BWC from combo package, when by using the BWController object |
void |
remove(int index)
Removes the BWController from a specific index in this list. |
void |
setAddOnPackage(boolean isAddOnPackage)
|
void |
setValueFrom(BWControllerArray other)
Method setValueFrom |
void |
setVetoChangeListener(com.pcube.apps.engage.foundations.VetoableCollectionChangeListener vetoChangeListener)
Only a single listener is currently supported. |
void |
toStream(java.io.PrintStream out,
Formatter f)
Method toStream |
void |
updateBwcMappingOnCombo(Package updatedPackage,
PackageCombo combo)
This method will update BWC mapping to Combo Package Base Package (BP) , Add on Package (AP) , Combo Package (CP) Case 1: If BP and AP contains same BWC, then BWC of BP will be removed and BWC of AP will be mapped to CP Case 2: If BP doesn't contains any BWC of AP, then BWC of AP will be directly mapped to CP |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_DOWNSTREAM_BWC_IDX
public static final int DEFAULT_UPSTREAM_BWC_IDX
public static final java.lang.String DEFAULT_DOWNSTREAM_BWC_NAME
public static final java.lang.String DEFAULT_UPSTREAM_BWC_NAME
public boolean isAddOnPackage
| Constructor Detail |
|---|
public BWControllerArray()
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean contains(BWController item)
item - the queried BWController
public boolean contains(java.lang.String bwcName)
bwcName - the desired BWController's name
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattableImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)
public BWController getAt(int index)
throws ItemNotFoundException
index - - the index of the desired BWController
ItemNotFoundExceptionpublic int getIndexOfItem(java.lang.String name)
item - the desired BWController's name
public BWController findByName(java.lang.String name)
name -
public int getSize()
public void setValueFrom(BWControllerArray other)
throws java.beans.PropertyVetoException
other -
java.beans.PropertyVetoExceptionpublic void addBwcForCombo(BWControllerArray other)
other - Updated packages Bandwidth controller array.
public void addNewBWCController(BWController bwc)
throws com.pcube.apps.engage.foundations.CollectionVetoException
bwc - bwc to add in combo package
com.pcube.apps.engage.foundations.CollectionVetoException
public void updateBwcMappingOnCombo(Package updatedPackage,
PackageCombo combo)
updatedPackage - combo - public void remove(BWController bwc)
bwc - object of BWController which is going to remove
public void toStream(java.io.PrintStream out,
Formatter f)
Formattable
toStream in interface FormattableFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)
public int addNewBWController()
throws com.pcube.apps.engage.foundations.CollectionVetoException
ItemNotFoundException - if there are no BWControllers left to add
com.pcube.apps.engage.foundations.CollectionVetoException
public BWController addNewBWController(int index)
throws com.pcube.apps.engage.foundations.CollectionVetoException
index - the added BWController index in the BWController array
ItemNotFoundException - if the index is out of bound
java.lang.IllegalArgumentException - if the BWController in the index was already added
com.pcube.apps.engage.foundations.CollectionVetoException
public void remove(int index)
throws com.pcube.apps.engage.foundations.CollectionVetoException
index - the removed BWController's index in this list
ItemNotFoundException - if this list has no BWController with the desired values
com.pcube.apps.engage.foundations.CollectionVetoExceptionpublic boolean isBWCAdded(int bwcIndex)
bwcIndex - index of the BWController to check
ItemNotFoundException - if the index is out of boundpublic java.util.Iterator iterator()
public java.util.Iterator iterator(int direction)
public java.util.ListIterator listIterator(int direction)
direction -
public java.util.ListIterator listIterator()
public com.pcube.apps.engage.foundations.VetoableCollectionChangeListener getVetoChangeListener()
public void setVetoChangeListener(com.pcube.apps.engage.foundations.VetoableCollectionChangeListener vetoChangeListener)
vetoChangeListener - The vetoChangeListener to set.public boolean isAddOnPackage()
public void setAddOnPackage(boolean isAddOnPackage)
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||