public class Location extends Event implements java.lang.Cloneable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
emit, emit, enqueue, enqueueTo, enqueueTo, enqueueTo, getFieldAttributes, getMapFieldTypes, getName, getName, getTime, isExternal, route
public Location()
public Location(double x1, double y1, double x2, double y2)
public Location expand(double distance)
distance
- The distance to expand by in each direction.public java.lang.String toString()
public boolean equals(java.lang.Object obj)
Event
Submit a bug or feature
Copyright (c) 2013-2016 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.