Cisco Systems, Inc.

com.pcube.apps.engage.apply
Class BWCSetAdaptor

java.lang.Object
  extended by com.pcube.apps.engage.apply.BWCSetAdaptor

public class BWCSetAdaptor
extends java.lang.Object

Builds a set of distinct BWC. The main product is a map of BWCs to Ids. The method getPrimaryBWCsIdx returns an iterator that goes through the packages in ascending order and returns the down or up primary BWC index.

Author:
rafis

Field Summary
static int MAX_NUMBER_BWC
           
 
Constructor Summary
BWCSetAdaptor(Policy policy, SePlatformData sePlatformData, PackageArray packages)
           
 
Method Summary
 java.util.List createBwcPkgIdxToSetIdxMap(Package pkg)
          create for the specified package mapping of BWC package index to global set index.
 java.util.List getBWControllers()
          a list of distinct BWC - corresponds to the global BWC pool in the SML
 java.util.Map getBWControllersMap()
          a map that associates a BWC with its location in the array
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_NUMBER_BWC

public static final int MAX_NUMBER_BWC
Constructor Detail

BWCSetAdaptor

public BWCSetAdaptor(Policy policy,
                     SePlatformData sePlatformData,
                     PackageArray packages)
              throws ApplyException
Throws:
ApplyException
Method Detail

getBWControllersMap

public java.util.Map getBWControllersMap()
a map that associates a BWC with its location in the array

Returns:

getBWControllers

public java.util.List getBWControllers()
a list of distinct BWC - corresponds to the global BWC pool in the SML

Returns:

createBwcPkgIdxToSetIdxMap

public java.util.List createBwcPkgIdxToSetIdxMap(Package pkg)
create for the specified package mapping of BWC package index to global set index. Every location in the returned list is the Integer index of the BWC in the global set. If no BWC is defined in some specific location the map returns a null.

Parameters:
pkg -
bwc -
Returns:
unmodifiable list

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.