jain.protocol.ss7.oam
Interface OamTimerVal


public abstract interface OamTimerVal

This interface represents an individual SS7 timer. The maximum and minimum range for a particular timer can be set at construction. Once created, the maximum and minimum range for the timer value cannot be changed. When changing the current value of the timer, the supplied value is checked to see if it falls within the maximum and minimum range. A collection of these timer values can then be stored for each Protocol Layer in the OAM Timer Profile for that particular layer.


Method Summary
 long getCurrentVal()
          This method gets the current value for this timer in milliseconds.
 long getMaxVal()
          This method gets the maximum value for this timer in milliseconds.
 long getMinVal()
          This method gets the minimum value for this timer in milliseconds.
 int getTimerId()
          Returns the ID of the this timer value.
 boolean setCurrentVal(long currentVal)
          This method sets the current value for this timer in milliseconds.
 

Method Detail

getMaxVal

public long getMaxVal()
This method gets the maximum value for this timer in milliseconds.

getMinVal

public long getMinVal()
This method gets the minimum value for this timer in milliseconds.

setCurrentVal

public boolean setCurrentVal(long currentVal)
This method sets the current value for this timer in milliseconds. If the supplied value falls within the minimum and maximum range for the timer, the value is changed and the method returns true. If the supplied value lies outside the range, then the value remains unchanged and the method returns false.
Returns:
  • true if the value has been changed
  • false if the supplied value lies outside the range of this timer (the value remains unchanged).

getCurrentVal

public long getCurrentVal()
This method gets the current value for this timer in milliseconds.

getTimerId

public int getTimerId()
Returns the ID of the this timer value. The IDs of each timer are defined in the appropriate OamTimerProfile.


06 January 2000
If you have any comments or queries, please mail them to Colm Hayden [JAIN SS7 OAM Edit Lead]

Copyright - 2000 Sun Microsystems