All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.ibm.beans.gauge.ImmediateSynchronization

java.lang.Object
   |
   +----COM.ibm.beans.gauge.ImmediateSynchronization

public class ImmediateSynchronization
extends Object
implements GaugeSynchronization, Serializable

This class provides immediate update behaviour which is an appropriate default for many gauge types.


Constructor Index

 o ImmediateSynchronization()
Create an ImmediateSynchronization which updates without delay to each new value, and waits indefinitely between changes of value.
 o ImmediateSynchronization(long, long)
Create an ImmediateSynchronization with the specified delay interval between updates when synchronized and when not synchronized.

Method Index

 o copyright()
 
 o isSynchronized(long, long, long, long, long, long)
Return true if the gauge display is now synchronized.
 o nextValue(long, long, long, long, long, long)
Return the next value for the gauge to show to achieve the required synchronization.
 o nextValueDelay(boolean)
Return the time interval in milliseconds after which the next value is to be displayed by the gauge to achieve the required synchronization.
 o resetSynchronization()
 

Constructors

 o ImmediateSynchronization

 public ImmediateSynchronization(long synchronizedDelay,
                                 long nonsynchronizedDelay)
Create an ImmediateSynchronization with the specified delay interval between updates when synchronized and when not synchronized.

 o ImmediateSynchronization

 public ImmediateSynchronization()
Create an ImmediateSynchronization which updates without delay to each new value, and waits indefinitely between changes of value.

Methods

 o copyright

 public static String copyright()

 o resetSynchronization

 public void resetSynchronization()

 o nextValueDelay

 public long nextValueDelay(boolean isSynchronized)
Return the time interval in milliseconds after which the next value is to be displayed by the gauge to achieve the required synchronization. This implementation returns INDEFINITE_WAIT if the display is synchronized and NO_WAIT otherwise.

 o isSynchronized

 public boolean isSynchronized(long value,
                               long minimum,
                               long maximum,
                               long displayValue,
                               long displayMinimum,
                               long displayMaximum)
Return true if the gauge display is now synchronized. This implementation considers the gauge to be synchronized if and only if the current and gauge values match, together with the corresponding ranges.

 o nextValue

 public long nextValue(long value,
                       long min,
                       long max,
                       long previousdisplayvalue,
                       long previousmin,
                       long previousmax)
Return the next value for the gauge to show to achieve the required synchronization. This implementation always returns the gauge value directly.

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Copyright © Taligent, Inc. 1996 - 1997.
Copyright
© IBM Corporation 1996 - 1997.
All Rights Reserved.