Cisco Systems Inc. Confidential

com.scms.api.sce.prpc
Class Channel

java.lang.Object
  extended by com.scms.api.sce.prpc.Channel

public class Channel
extends java.lang.Object

Represents a Channel with Id, Name, Direction, PIR, CIR, AL, Parent Vlink

Author:
vmurali

Field Summary
static int DOWNSTREAM
           
static int UPSTREAM
           
 
Constructor Summary
  Channel(int channelId, java.lang.String channelName, int channelPIR, int channelCIR)
          Builds a new Channel, Direction and parentVlinkId will be the same as the Vlink direction and Id of the Vlink to which the channel is added.
  Channel(int channelId, java.lang.String channelName, int channelPIR, int channelCIR, int channelAlValue)
          Builds a new Channel, Direction and parentVlinkId will be the same as the Vlink direction and Id of the Vlink to which the channel is added.
protected Channel(int channelId, java.lang.String channelName, int direction, int channelPIR, int channelCIR, int parentVLinkId)
          Builds a new channel
protected Channel(int channelId, java.lang.String channelName, int direction, int channelPIR, int channelCIR, int channelAlValue, int parentVLinkId)
          Builds a new channel
 
Method Summary
 int getChannelAlValue()
           
 int getChannelCIR()
           
 int getChannelId()
           
 java.lang.String getChannelName()
           
 int getChannelPIR()
           
 int getDirection()
           
 int getParentVLinkId()
           
 void setChannelAlValue(int channelAlValue)
           
 void setChannelCIR(int channelCIR)
           
 void setChannelId(int channelId)
           
 void setChannelName(java.lang.String channelName)
           
 void setChannelPIR(int channelPIR)
           
 void setDirection(int direction)
           
 void setParentVLinkId(int parentVLinkId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UPSTREAM

public static final int UPSTREAM
See Also:
Constant Field Values

DOWNSTREAM

public static final int DOWNSTREAM
See Also:
Constant Field Values
Constructor Detail

Channel

protected Channel(int channelId,
                  java.lang.String channelName,
                  int direction,
                  int channelPIR,
                  int channelCIR,
                  int channelAlValue,
                  int parentVLinkId)
Builds a new channel

Parameters:
channelId - - Channel Id
channelName - - Channel Name
direction - - Direction Upstream/DownStream
channelPIR - - Peak Information Rate
channelCIR - - Committed Information Rate
channelAlValue - - Assurance Level
parentVLinkId - - Vlink Id under which the channel to be added

Channel

protected Channel(int channelId,
                  java.lang.String channelName,
                  int direction,
                  int channelPIR,
                  int channelCIR,
                  int parentVLinkId)
Builds a new channel

Parameters:
channelId - - Channel Id
channelName - - Channel Name
direction - - Direction Upstream/DownStream
channelPIR - - Peak Information Rate
channelCIR - - Committed Information Rate
parentVLinkId - - Vlink Id under which the channel to be added

Channel

public Channel(int channelId,
               java.lang.String channelName,
               int channelPIR,
               int channelCIR,
               int channelAlValue)
Builds a new Channel, Direction and parentVlinkId will be the same as the Vlink direction and Id of the Vlink to which the channel is added.

Parameters:
channelId - - Channel Id
channelName - - Channel Name
channelPIR - - Peak Information Rate
channelCIR - - Committed Information Rate
channelAlValue - - Assurance Level

Channel

public Channel(int channelId,
               java.lang.String channelName,
               int channelPIR,
               int channelCIR)
Builds a new Channel, Direction and parentVlinkId will be the same as the Vlink direction and Id of the Vlink to which the channel is added.

Parameters:
channelId - - Channel Id
channelName - - Channel Name
channelPIR - - Peak Information Rate
channelCIR - - Committed Information Rate
Method Detail

getChannelId

public int getChannelId()
Returns:
the channelId

setChannelId

public void setChannelId(int channelId)
Parameters:
channelId - the channelId to set

getChannelName

public java.lang.String getChannelName()
Returns:
the channelName

setChannelName

public void setChannelName(java.lang.String channelName)
Parameters:
channelName - the channelName to set

getDirection

public int getDirection()
Returns:
the direction

setDirection

public void setDirection(int direction)
Parameters:
direction - the direction to set

getChannelPIR

public int getChannelPIR()
Returns:
the channelPIR

setChannelPIR

public void setChannelPIR(int channelPIR)
Parameters:
channelPIR - the channelPIR to set

getChannelCIR

public int getChannelCIR()
Returns:
the channelCIR

setChannelCIR

public void setChannelCIR(int channelCIR)
Parameters:
channelCIR - the channelCIR to set

getChannelAlValue

public int getChannelAlValue()
Returns:
the channelAlValue

setChannelAlValue

public void setChannelAlValue(int channelAlValue)
Parameters:
channelAlValue - the channelAlValue to set

getParentVLinkId

public int getParentVLinkId()
Returns:
the parentVLinkId

setParentVLinkId

public void setParentVLinkId(int parentVLinkId)
Parameters:
parentVLinkId - the parentVLinkId to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Cisco Systems Inc. Confidential