|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.apama.event.parser.LocationType
public class LocationType
Represents the value of an Apama location
type,
consisting of of two (x,y) co-ordinates. The associated type is represented
by LocationFieldType.TYPE
.
Values of the location type describe rectangular areas in a two-dimensional unit-less Cartesian coordinate plane. Locations are defined by the float coordinates of two points x1, y1 and x2, y2 at diagonally opposite corners of an enclosing boundary rectangle.
Constructor Summary | |
---|---|
LocationType()
Construct a new instance of LocationType, with coordinates initialized to 0.0. |
|
LocationType(double x1,
double y1,
double x2,
double y2)
Construct a new instance of LocationType, with input coordinates as constructor arguments. |
Method Summary | |
---|---|
double |
getX1()
Returns the x component of the first point that describes the rectangular area. |
double |
getX2()
Returns the x component of the second point that describes the rectangular area. |
double |
getY1()
Returns the y component of the first point that describes the rectangular area. |
double |
getY2()
Returns the y component of the second point that describes the rectangular area. |
java.lang.String |
toString()
Returns the x component of the first point that describes the rectangular area. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocationType(double x1, double y1, double x2, double y2)
public LocationType()
Method Detail |
---|
public double getX1()
public double getX2()
public double getY1()
public double getY2()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |