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 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)
           
 
Method Summary
 List createBwcPkgIdxToSetIdxMap(Package pkg)
          create for the specified package mapping of BWC package index to global set index.
 List getBWControllers()
          a list of distinct BWC - corresponds to the global BWC pool in the SML
 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)
              throws ApplyException
Throws:
ApplyException
Method Detail

getBWControllersMap

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

Returns:

getBWControllers

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

Returns:

createBwcPkgIdxToSetIdxMap

public 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 © 2011 Cisco Systems, Inc. Confidential.