All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class PREDATOR.ADT.RasterObject

java.lang.Object
   |
   +----PREDATOR.ADT.DataObject
           |
           +----PREDATOR.ADT.RasterObject

public class RasterObject
extends DataObject
implements CachingObject, DisplayObject
Encapsulates all in-memory data regarding a raster ADT object.

See Also:
ADT_raster

Variable Index

 o frequency
 o lines
 o resolution
 o samples
 o values
 o Xmax
 o Xmin
 o Ymax
 o Ymin

Constructor Index

 o RasterObject()

Method Index

 o callback(URL, ADTMetaInfo)
Performs a callback to the server, using the given URL.
 o display(ADTMetaInfo)
Displays an object indepently.
 o getMessage()
Callback objects have the option of supplying a byte string containing additional information about the callback.
 o requiresCallback(ADTMetaInfo)
Determines if this object has a handle on the "full value", or if a callback or deserialization is necessary.
 o toString(ADTMetaInfo)
Prints the value of the raster

Variables

 o frequency
 public int frequency
 o samples
 public int samples
 o lines
 public int lines
 o resolution
 public int resolution
 o Xmin
 public double Xmin
 o Ymin
 public double Ymin
 o Xmax
 public double Xmax
 o Ymax
 public double Ymax
 o values
 public int values[]

Constructors

 o RasterObject
 public RasterObject()

Methods

 o toString
 public String toString(ADTMetaInfo MetaInfo)
Prints the value of the raster

Parameters:
MetaInfo - The meta-info for this object
Returns:
A string holding the value of the raster
Overrides:
toString in class DataObject
 o getMessage
 public byte[] getMessage()
Callback objects have the option of supplying a byte string containing additional information about the callback. For instance, an image object might specify one of many stored resolutions.

Returns:
A binary message
 o callback
 public void callback(URL CallbackURL,
                      ADTMetaInfo MetaInfo)
Performs a callback to the server, using the given URL. The URL may be opened as a stream, if desired. The contents of the URL will be determined by what the server-side ADT writes out in the ServiceCallback() function (in types.h).

Parameters:
CallbackURL - The URL of the callback object
MetaInfo - The meta-info for this object
 o requiresCallback
 public boolean requiresCallback(ADTMetaInfo MetaInfo)
Determines if this object has a handle on the "full value", or if a callback or deserialization is necessary.

Parameters:
MetaInfo - The meta-info for this object
Returns:
true if this object does not have its "full value" available
 o display
 public void display(ADTMetaInfo MetaInfo) throws RequiresCallbackException
Displays an object indepently. Implementations of this function should be non-blocking for best performance. (For instance, an image should be displayed in an independent frame and execution should proceed while the frame is still open.)

Parameters:
MetaInfo - The meta-info for this object
Throws: RequiresCallbackException
when a callback is required before a display can be made

All Packages  Class Hierarchy  This Package  Previous  Next  Index