Cisco Systems Inc. Confidential

com.scms.api.sce.prpc
Class VLink

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

public class VLink
extends java.lang.Object

Represents a Vlink with name, Id, Direction, PIR, CIR, AL, AGC Offset.

Author:
vmurali

Field Summary
static int DOWNSTREAM
           
static int UPSTREAM
           
 
Constructor Summary
VLink(int vlinkId, java.lang.String vlinkName, int direction, int agcOffset, int vlinkPIR, int vlinkCIR)
          Builds a new Vlink
VLink(int vlinkId, java.lang.String vlinkName, int direction, int agcOffset, int vlinkPIR, int vlinkCIR, int vlinkAlValue)
          Builds a new Vlink
 
Method Summary
 void addChannel(Channel channel)
          Add a new channel to Vlink
 void addChannel(Channel[] channels)
          Add an array of channels to Vlink
 int getAgcOffset()
           
 java.util.ArrayList<Channel> getChannels()
           
 int getDirection()
           
 int getVlinkAlValue()
           
 int getVlinkCIR()
           
 int getVlinkId()
           
 java.lang.String getVlinkName()
           
 int getVlinkPIR()
           
 void setAgcOffset(int agcOffset)
          Sets the given value as the AgcOffset of VLink.
 void setDirection(int direction)
          Sets the given value as the Direction of VLink and its defualt channel.
 void setVlinkAlValue(int vlinkAlValue)
          Sets the given value as the AlValue of VLink and its defualt channel.
 void setVlinkCIR(int vlinkCIR)
          Sets the given value as the CIR of VLink and its defualt channel.
 void setVlinkId(int vlinkId)
          Sets the given value as the ID of VLink and its defualt channel.
 void setVlinkName(java.lang.String vlinkName)
          Sets the given value as the name of VLink and its defualt channel.
 void setVlinkPIR(int vlinkPIR)
          Sets the given value as the PIR of VLink and its defualt channel.
 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

VLink

public VLink(int vlinkId,
             java.lang.String vlinkName,
             int direction,
             int agcOffset,
             int vlinkPIR,
             int vlinkCIR,
             int vlinkAlValue)
Builds a new Vlink

Parameters:
vlinkId - - Virtual Link Id
vlinkName - - Virtual Link Name
direction - - Direction Upstream/Downstream
agcOffset - - AGC Offset
vlinkPIR - - Peak Information Rate
vlinkCIR - - Committed Information Rate
vlinkAlValue - - Assurance level

VLink

public VLink(int vlinkId,
             java.lang.String vlinkName,
             int direction,
             int agcOffset,
             int vlinkPIR,
             int vlinkCIR)
Builds a new Vlink

Parameters:
vlinkId - - Virtual Link Id
vlinkName - - Virtual Link Name
direction - - Direction Upstream/Downstream
agcOffset - - AGC Offset
vlinkPIR - - Peak Information Rate
vlinkCIR - - Committed Information Rate
Method Detail

addChannel

public void addChannel(Channel channel)
Add a new channel to Vlink

Parameters:
channel - - New Channel to be added

addChannel

public void addChannel(Channel[] channels)
Add an array of channels to Vlink

Parameters:
channels - - New Channels to be added

getVlinkId

public int getVlinkId()
Returns:
the vlinkId

setVlinkId

public void setVlinkId(int vlinkId)
Sets the given value as the ID of VLink and its defualt channel.

Parameters:
vlinkId - the vlinkId to set

getVlinkName

public java.lang.String getVlinkName()
Returns:
the vlinkName

setVlinkName

public void setVlinkName(java.lang.String vlinkName)
Sets the given value as the name of VLink and its defualt channel.

Parameters:
vlinkName - the vlinkName to set

getDirection

public int getDirection()
Returns:
the direction

setDirection

public void setDirection(int direction)
Sets the given value as the Direction of VLink and its defualt channel.

Parameters:
direction - the direction to set

getAgcOffset

public int getAgcOffset()
Returns:
the agcOffset

setAgcOffset

public void setAgcOffset(int agcOffset)
Sets the given value as the AgcOffset of VLink.

Parameters:
agcOffset - the agcOffset to set

getVlinkPIR

public int getVlinkPIR()
Returns:
the vlinkPIR

setVlinkPIR

public void setVlinkPIR(int vlinkPIR)
Sets the given value as the PIR of VLink and its defualt channel.

Parameters:
vlinkPIR - the vlinkPIR to set

getVlinkCIR

public int getVlinkCIR()
Returns:
the vlinkCIR

setVlinkCIR

public void setVlinkCIR(int vlinkCIR)
Sets the given value as the CIR of VLink and its defualt channel.

Parameters:
vlinkCIR - the vlinkCIR to set

getVlinkAlValue

public int getVlinkAlValue()
Returns:
the vlinkAlValue

setVlinkAlValue

public void setVlinkAlValue(int vlinkAlValue)
Sets the given value as the AlValue of VLink and its defualt channel.

Parameters:
vlinkAlValue - the vlinkAlValue to set

getChannels

public java.util.ArrayList<Channel> getChannels()
Returns:
the List of channels in the Vlink

toString

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

Cisco Systems Inc. Confidential