uk.ac.lancs.relate.trigger
Class Location

java.lang.Object
  extended by uk.ac.lancs.relate.trigger.Location
All Implemented Interfaces:
java.io.Serializable

public class Location
extends java.lang.Object
implements java.io.Serializable

Location of a trackable, defined by x, y and z coordinates.

Author:
Sara Streng
See Also:
Serialized Form

Constructor Summary
Location(double x, double y, double z)
          Create a new location with an x, y and z coordinate.
 
Method Summary
 double getX()
          Returns the x-coordinate.
 double getY()
          Returns the y-coordinate.
 double getZ()
          Returns the z-coordinate.
 java.lang.String print()
          Prints the x, y and z coordinate of this location.
 void setX(double x)
          Sets the x-coordinate.
 void setY(double y)
          Sets the y-coordinate.
 void setZ(double z)
          Sets the z-coordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Location

public Location(double x,
                double y,
                double z)
Create a new location with an x, y and z coordinate.

Parameters:
x - x-coordinate
y - y-coordinate
z - z-coordinate
Method Detail

getX

public double getX()
Returns the x-coordinate.

Returns:
x-coordinate

setX

public void setX(double x)
Sets the x-coordinate.

Parameters:
x - x-coordinate

getY

public double getY()
Returns the y-coordinate.

Returns:
y-coordinate

setY

public void setY(double y)
Sets the y-coordinate.

Parameters:
y - -coordinate

getZ

public double getZ()
Returns the z-coordinate.

Returns:
z-coordinate

setZ

public void setZ(double z)
Sets the z-coordinate.

Parameters:
z - z-coordinate

print

public java.lang.String print()
Prints the x, y and z coordinate of this location.

Returns:
x, y and z coordinate of this location