All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.ibm.beans.gauge.InertialSynchronization

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

public class InertialSynchronization
extends ImmediateSynchronization

This class provides inertial behaviour appropriate to mechanical gauges such as pointers and needle gauges.


Constructor Index

 o InertialSynchronization()
Create an InertialSynchronization with a natural period of 20 and a damping of 1 (critical damping).
 o InertialSynchronization(double, double)
Create an InertialSynchronization with the specified damping, minimum velocity, and time delays when synchronized and when not synchronized.
 o InertialSynchronization(double, double, long, long)
Create an InertialSynchronization with the specified damping, minimum velocity, and time delays when synchronized and when not synchronized.

Method Index

 o copyright()
 
 o damping()
Return the current damping.
 o isSynchronized(long, long, long, long, long, long)
Return true if the gauge display is now synchronized.
 o naturalPeriod()
Return the current natural period.
 o nextValue(long, long, long, long, long, long)
Return the next value for the gauge to show to achieve the required synchronization.
 o resetSynchronization()
 
 o setDamping(double)
Set the damping.
 o setNaturalPeriod(double)
Set the natural period.

Constructors

 o InertialSynchronization

 public InertialSynchronization()
Create an InertialSynchronization with a natural period of 20 and a damping of 1 (critical damping).
See Also:
setNaturalPeriod, setDamping

 o InertialSynchronization

 public InertialSynchronization(double naturalPeriod,
                                double damping)
Create an InertialSynchronization with the specified damping, minimum velocity, and time delays when synchronized and when not synchronized.
See Also:
setNaturalPeriod, setDamping

 o InertialSynchronization

 public InertialSynchronization(double naturalPeriod,
                                double damping,
                                long synchronizedDelay,
                                long nonsynchronizedDelay)
Create an InertialSynchronization with the specified damping, minimum velocity, and time delays when synchronized and when not synchronized.
See Also:
setNaturalPeriod, setDamping

Methods

 o copyright

 public static String copyright()

 o resetSynchronization

 public synchronized void resetSynchronization()
Overrides:
resetSynchronization in class ImmediateSynchronization

 o naturalPeriod

 public double naturalPeriod()
Return the current natural period.
See Also:
setNaturalPeriod

 o setNaturalPeriod

 public synchronized void setNaturalPeriod(double naturalPeriod)
Set the natural period. This is the number of gauge updates which one complete oscillation will take if the damping is zero, so smaller values cause faster oscillations and larger values slower oscillations.

 o damping

 public synchronized double damping()
Return the current damping.
See Also:
setDamping

 o setDamping

 public synchronized void setDamping(double damping)
Set the damping. A damping of 1.0 gives critical damping, so that the gauge synchronizes with no overshoot. Values greater than 1.0 give overdamping, which increases the time taken to synchronize. Values less than 1.0 give underdamping, causing the gauge to overshoot and oscillate toward the next value. Zero damping causes endless oscillation, and the maximum value of the damping is equal to the natural period: damping values equal to or greater than the natural period cause the gauge to be completely damped, and the value never changes. In practice, the gauge value will change extremely slowly, even with these values, to minimize unpredictable side effects.
See Also:
setNaturalPeriod

 o isSynchronized

 public synchronized boolean isSynchronized(long value,
                                            long min,
                                            long max,
                                            long displayvalue,
                                            long displaymin,
                                            long displaymax)
Return true if the gauge display is now synchronized.
Overrides:
isSynchronized in class ImmediateSynchronization

 o nextValue

 public synchronized 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.
Overrides:
nextValue in class ImmediateSynchronization

All Packages  Class Hierarchy  This Package  Previous  Next  Index

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