All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class PREDATOR.ADT.PolygonObject

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

public class PolygonObject
extends DataObject
implements CachingObject, DisplayObject
Encapsulates all in-memory data regarding an polygon ADT object.

See Also:
ADT_polygon

Constructor Index

 o PolygonObject()

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 polygon

Constructors

 o PolygonObject
 public PolygonObject()

Methods

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

Parameters:
MetaInfo - The meta-info for this object
Returns:
A string holding the value of the polygon
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