|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjasi.sim.geo.GeoObject
jasi.sim.geo.cartesian.LinearMove
public final class LinearMove
This class provides algorithms for linear movements with constant speed.
| Field Summary |
|---|
| Fields inherited from interface jasi.sim.geo.Geometric |
|---|
BEGIN, END, MIDLE |
| Constructor Summary | |
|---|---|
LinearMove(LinearMove position)
Constructor of a position. |
|
LinearMove(SpaceVec a)
Constructor of a "non-moving" linear movement. |
|
LinearMove(SpaceVec a,
Time start,
SpaceVec b,
Speed v)
Constructor of a linear movement between to positions. |
|
LinearMove(SpaceVec a,
Time start,
SpaceVec b,
Time end)
Constructor of a linear movement between to positions. |
|
LinearMove(SpaceVec a,
Time start,
SpeedVec v,
Time end)
Constructor of a linear movement between to positions. |
|
LinearMove(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. |
Direction |
readDirection()
Get the direction vector for a given time. |
Space |
readMinimumDistance(SpaceVec r)
Get the minimum distance from a given vector of a location in space. |
Time |
readMinimumTime(SpaceVec r)
Get the time of minimum distance from a given space vector. |
SpaceVec |
readSpaceVec(Time t)
Get the space vector of this location for a given time. |
Speed |
readSpeed()
Get the speed for a given time. |
SpeedVec |
readSpeedVec()
Get the speed vector for a given time. |
SpaceVec |
readStart()
Get the start position. |
Time |
readStartTime()
Get the start time. |
SpaceVec |
readTarget()
Get the end position. |
Time |
readTargetTime()
Get the end 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 |
|---|
public LinearMove(SpaceVec a,
Time start,
SpaceVec b,
Time end)
a - The start position.start - The start time.b - The end position.end - The end time.
public LinearMove(SpaceVec a,
Time start,
SpaceVec b,
Speed v)
a - The start position.start - The start time.b - The end position.v - The speed.
public LinearMove(SpaceVec a,
Time start,
SpeedVec v,
Time end)
a - The start position.start - The start time.v - The speed vector.end - The end time.public LinearMove(SpaceVec a)
a - The position.public LinearMove(LinearMove position)
position - A position.public LinearMove(java.lang.String position)
position - The string representation of a position.| Method Detail |
|---|
public SpaceVec readSpaceVec(Time t)
t - That time.
public SpeedVec readSpeedVec()
public Direction readDirection()
public Speed readSpeed()
public SpaceVec readStart()
public Time readStartTime()
public SpaceVec readTarget()
public Time readTargetTime()
public Space readMinimumDistance(SpaceVec r)
r - That space vector.
public Time readMinimumTime(SpaceVec r)
r - That space vector.
public Move moveAt(Time t)
moveAt in interface Movet - That time.
public Space distance(Move p,
Time t)
distance in interface Movep - That location.t - The another time.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - That object which is compared with this object.
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 | ||||||||