com.apama.event.parser
Class LocationType

java.lang.Object
  extended by com.apama.event.parser.LocationType

public class LocationType
extends java.lang.Object

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

LocationType

public LocationType(double x1,
                    double y1,
                    double x2,
                    double y2)
Construct a new instance of LocationType, with input coordinates as constructor arguments.


LocationType

public LocationType()
Construct a new instance of LocationType, with coordinates initialized to 0.0.

Method Detail

getX1

public double getX1()
Returns the x component of the first point that describes the rectangular area.


getX2

public double getX2()
Returns the x component of the second point that describes the rectangular area.


getY1

public double getY1()
Returns the y component of the first point that describes the rectangular area.


getY2

public double getY2()
Returns the y component of the second point that describes the rectangular area.


toString

public java.lang.String toString()
Returns the x component of the first point that describes the rectangular area.

Overrides:
toString in class java.lang.Object


Submit a bug or feature
Copyright (c) 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG