jasi.sim.geo.spherical
Class SphericalMove

java.lang.Object
  extended by jasi.sim.geo.GeoObject
      extended by jasi.sim.geo.spherical.SphericalMove
All Implemented Interfaces:
SimValue, Move, Geometric, java.io.Serializable

public final class SphericalMove
extends GeoObject
implements Move

Spherical movement.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jasi.sim.geo.Geometric
BEGIN, END, MIDLE
 
Constructor Summary
SphericalMove(Coordinate a)
          Constructor for a "non-moving" spherical move.
SphericalMove(Coordinate a, Time t, Coordinate b, Speed v)
          Constructor for a spherical move.
SphericalMove(Coordinate a, Time start, Coordinate b, Time end)
          Constructor for a spherical move.
SphericalMove(SphericalMove position)
          Constructor of a position.
SphericalMove(java.lang.String position)
          Constructor of a position.
 
Method Summary
 Space distance(Move p, Time t)
          Retrieve the distance at a given time of this movement from that movement.
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
 int hashCode()
          Returns a hash code value for the object.
 Move moveAt(Time t)
          Get the movement at a given time.
 Coordinate readCoordinate(Time t)
          Get the coordinate at another time.
 SpaceVec readSpaceVec(Time t)
          Get the space vector of this location for a given time.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class jasi.sim.geo.GeoObject
getContent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SphericalMove

public SphericalMove(Coordinate a,
                     Time t,
                     Coordinate b,
                     Speed v)
Constructor for a spherical move.

Parameters:
a - Start coordinate.
t - Start time.
b - End coordinate.
v - Speed.

SphericalMove

public SphericalMove(Coordinate a)
Constructor for a "non-moving" spherical move.

Parameters:
a - The coordinate.

SphericalMove

public SphericalMove(Coordinate a,
                     Time start,
                     Coordinate b,
                     Time end)
Constructor for a spherical move.

Parameters:
a - Start coordinate.
start - Start time.
b - End coordinate.
end - End time.

SphericalMove

public SphericalMove(SphericalMove position)
Constructor of a position.

Parameters:
position - The string representation of a position.

SphericalMove

public SphericalMove(java.lang.String position)
Constructor of a position.

Parameters:
position - The string representation of a position.
Method Detail

readCoordinate

public Coordinate readCoordinate(Time t)
Get the coordinate at another time.

Parameters:
t - The another time.
Returns:
The coordinate at another time.

readSpaceVec

public SpaceVec readSpaceVec(Time t)
Get the space vector of this location for a given time.

Parameters:
t - That time.
Returns:
The space vector at that time.

moveAt

public Move moveAt(Time t)
Get the movement at a given time.

Specified by:
moveAt in interface Move
Parameters:
t - That time.
Returns:
The movement at that given time.

distance

public Space distance(Move p,
                      Time t)
Retrieve the distance at a given time of this movement from that movement.

Specified by:
distance in interface Move
Parameters:
p - That location.
t - The another time.
Returns:
Its distance.

hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hash tables.

Overrides:
hashCode in class java.lang.Object
Returns:
A hash code value for this object.

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
o - That object which is compared with this object.
Returns:
True, if this object is the same as that object.

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
The string.