Interface edu.cornell.lassp.mck10.Hysteresis.XYProducer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface edu.cornell.lassp.mck10.Hysteresis.XYProducer

public interface XYProducer
extends Object
XYProducer is an interface which must be implemented by any class which needs to act as a producer of XY data. An XYProducer must be able to register and remove consumers, and tell the consumers the range of values it might produce. It will then send the XY data to its consumers using their notify methods.

Source Code is available.

Version:
1.0
Author:
Matt Kuntz (e-mail: mck10@cornell.edu)

Method Index

 o getLimits(XYPair, XYPair)
getLimits(lower,upper) is used by consumers to find out what range of values they can expect to receive.
 o registerXYConsumer(XYConsumer)
registerXYConsumer(consumer) is used to add a new consumer.
 o removeXYConsumer(XYConsumer)
removeXYConsumer is used to remove a consumer.

Methods

 o registerXYConsumer
  public abstract void registerXYConsumer(XYConsumer consumer)
registerXYConsumer(consumer) is used to add a new consumer.
Parameters:
consumer - The consumer to add.
 o removeXYConsumer
  public abstract void removeXYConsumer(XYConsumer consumer)
removeXYConsumer is used to remove a consumer.
Parameters:
consumer - The consumer to remove.
 o getLimits
  public abstract void getLimits(XYPair lower,
                                 XYPair upper)
getLimits(lower,upper) is used by consumers to find out what range of values they can expect to receive. The values are returned in the parameters lower and upper.
Parameters:
lower - The lower limits for the X and Y data.
upper - The upper limits for the X and Y data.

All Packages  Class Hierarchy  This Package  Previous  Next  Index