Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.net
Interface Interpolator  view Interpolator download Interpolator.java

All Known Implementing Classes:
LinearInterpolator

public interface Interpolator

This is the common interface of every statistical modeler, from here interpolator. It provides a common yet simple framework based on the tecnique of stop-and-go. When the layer sends a packet it makes a first half of measurement and stops. When the ack for the previous packet arrives, the interpolator is update with data from the second half of measurement, thus completing it.

Version:
1.0

Method Summary
 int computeLevel(int dim)
          This method is used to ask the interpolator which is the best level to use to compress the passed data.
 boolean create(java.lang.Integer num)
          This method is the real constructor.
 boolean destroy()
          Destructor and clean up.
 boolean update(int level, int dim, double compress_time, double compress_dim, double trans_time)
          This method is the second half of the measurement.
 boolean updateLine(int dim, double trans_time, double Xprec)
          This method is for internal use only.
 

Method Detail

create

public boolean create(java.lang.Integer num)
This method is the real constructor. Interface cannot have constructor but we want to underline that you must provide a constructor.


computeLevel

public int computeLevel(int dim)
This method is used to ask the interpolator which is the best level to use to compress the passed data. The level choosen depends on data dimension and other parameters kept internal to the interpolator.


updateLine

public boolean updateLine(int dim,
                          double trans_time,
                          double Xprec)
This method is for internal use only.


update

public boolean update(int level,
                      int dim,
                      double compress_time,
                      double compress_dim,
                      double trans_time)
This method is the second half of the measurement. It takes measured parameters as arguments and update the internal data representation.


destroy

public boolean destroy()
Destructor and clean up.