Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class DeprecatedPackageData

java.lang.Object
  extended by com.pcube.apps.engage.common.ArrayElement
      extended by com.pcube.apps.engage.policy.DeprecatedPackageData
All Implemented Interfaces:
Formattable, IPackageData, java.io.Serializable, java.lang.Cloneable

public class DeprecatedPackageData
extends ArrayElement
implements java.io.Serializable, Formattable, IPackageData

A collection of Package parameters.

See Also:
Serialized Form

Constructor Summary
DeprecatedPackageData(Policy policy)
          PackageData Constructor.
 
Method Summary
 java.lang.Object clone()
           
 void fromStream(java.io.BufferedReader in, Formatter f)
          Method fromStream
 BWControllerArray getBWControllers()
           
 java.lang.String getName()
          Gets this PolicyData's name.
 int getPostBreachDownstreamBWControllerIndex(int serviceIndex)
          Deprecated. call this method on the service's rule
 int getPostBreachUpstreamBWControllerIndex(int serviceIndex)
          Deprecated. call this method on the service's rule
 int getPreBreachDownstreamBWControllerIndex(int serviceIndex)
          Deprecated. read this value from the rule instance
 int getPreBreachUpstreamBWControllerIndex(int serviceIndex)
          Deprecated. read this value from the rule instance
 int getProfileIndex()
          Gets this PolicyData's index.
 void setName(java.lang.String newName)
          Sets this PolicyData's name.
 void setProfileIndex(int newProfileIndex)
          Sets this PolicyData's index.
 void setValueFrom(IPackageData o)
          Method setValueFrom
 void toStream(java.io.PrintStream out, Formatter f)
          Method toStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeprecatedPackageData

public DeprecatedPackageData(Policy policy)
PackageData Constructor.

Parameters:
policy - the Policy this PolicyData is part of
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in class ArrayElement
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()

fromStream

public void fromStream(java.io.BufferedReader in,
                       Formatter f)
                throws ImportExportException
Description copied from interface: Formattable
Method fromStream

Specified by:
fromStream in interface Formattable
Throws:
ImportExportException
See Also:
Formattable.fromStream(java.io.BufferedReader, com.pcube.apps.engage.common.Formatter)

getName

public java.lang.String getName()
Gets this PolicyData's name.

Returns:
this PolicyData's name

getPostBreachDownstreamBWControllerIndex

public int getPostBreachDownstreamBWControllerIndex(int serviceIndex)
Deprecated. call this method on the service's rule

Gets specific downstream BWController which is linked to the certain Service after breach occurs for this PolicyData.

Specified by:
getPostBreachDownstreamBWControllerIndex in interface IPackageData
Parameters:
serviceIndex - the Service's index in the Policy's ServiceArray
Returns:
the BWController's index in this PolicyData's BWControllerArray

getPostBreachUpstreamBWControllerIndex

public int getPostBreachUpstreamBWControllerIndex(int serviceIndex)
Deprecated. call this method on the service's rule

Gets specific upstream BWController which is linked to the certain Service after breach occurs for this PolicyData.

Specified by:
getPostBreachUpstreamBWControllerIndex in interface IPackageData
Parameters:
serviceIndex - the Service's index in the Policy's ServiceArray
Returns:
the BWController's index in this PolicyData's BWControllerArray

getPreBreachDownstreamBWControllerIndex

public int getPreBreachDownstreamBWControllerIndex(int serviceIndex)
Deprecated. read this value from the rule instance

Gets specific downstream BWController which is linked to the certain Service before breach occurs for this PolicyData.

Specified by:
getPreBreachDownstreamBWControllerIndex in interface IPackageData
Parameters:
serviceIndex - the queried Service's index
Returns:
the index of the BWController in this PolicyData's BWControllerArray
Throws:
java.lang.IllegalArgumentException - if there Service is the GlobalRule's Service

getPreBreachUpstreamBWControllerIndex

public int getPreBreachUpstreamBWControllerIndex(int serviceIndex)
Deprecated. read this value from the rule instance

Gets specific upstream BWController which is linked to the certain Service before breach occurs for this PolicyData.

Specified by:
getPreBreachUpstreamBWControllerIndex in interface IPackageData
Parameters:
serviceIndex - the queried Service's index
Returns:
the index of the BWController in this PolicyData's BWControllerArray
Throws:
java.lang.IllegalArgumentException - if there Service is the GlobalRule's Service

getProfileIndex

public int getProfileIndex()
Gets this PolicyData's index.

Returns:
this PolicyData's index

setName

public void setName(java.lang.String newName)
Sets this PolicyData's name.

Parameters:
newName - this PolicyData's new name

setProfileIndex

public void setProfileIndex(int newProfileIndex)
Sets this PolicyData's index. The index is used to calculate th eindices of this Profiles parameters in the Policy domain's SE boxes.

Parameters:
newProfileIndex - this PolicyData's index

setValueFrom

public void setValueFrom(IPackageData o)
Method setValueFrom

Specified by:
setValueFrom in interface IPackageData
Parameters:
other -

toStream

public void toStream(java.io.PrintStream out,
                     Formatter f)
Description copied from interface: Formattable
Method toStream

Specified by:
toStream in interface Formattable
See Also:
Formattable.toStream(java.io.PrintStream, com.pcube.apps.engage.common.Formatter)

getBWControllers

public BWControllerArray getBWControllers()

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.