|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apama.jmon.Event com.apama.jmon.Location
public class Location
The Location class provides a Java representation of the MonitorScript location type. It defines a rectangular region by specifying the coordinates of two diagonally opposite corners.
Constructor Summary | |
---|---|
Location()
Default constructor - creates a point location at [0,0]. |
|
Location(double x1,
double y1,
double x2,
double y2)
Full argument constructor to create a rectangular region. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
Override Object.equals() to check equality based upon the field values of the instance. |
Location |
expand(double distance)
Returns a new Location with the dimensions of this Location expanded by the given distance in each direction (4 directions). |
int |
hashCode()
Override Object.hashCode() to provide a hash code that is based upon the field values of the instance. |
java.lang.String |
toString()
Override Object.toString() to provide output compatible with the Apama standard representation of location. |
Methods inherited from class com.apama.jmon.Event |
---|
emit, emit, enqueue, enqueueTo, enqueueTo, enqueueTo, getFieldAttributes, getMapFieldTypes, getName, getName, getTime, isExternal, route |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Location()
public Location(double x1, double y1, double x2, double y2)
Method Detail |
---|
public java.lang.Object clone()
clone
in class Event
public Location expand(double distance)
distance
- The distance to expand by in each direction.
public java.lang.String toString()
toString
in class Event
public boolean equals(java.lang.Object obj)
Event
equals
in class Event
obj
- The object to be compared for equality.
Object.equals(Object)
public int hashCode()
Event
hashCode
in class Event
Object.hashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |