|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.kolls.railworld.play.RailAccident
net.kolls.railworld.play.ra.HeadOn
public class HeadOn
A head-on collision between two trains.
| Field Summary |
|---|
| Fields inherited from class net.kolls.railworld.play.RailAccident |
|---|
pos, t1, t2 |
| Constructor Summary | |
|---|---|
HeadOn(Train first,
Train second,
java.awt.geom.Point2D p)
Create a head-on collision. |
|
| Method Summary | |
|---|---|
java.lang.String |
midbody()
The midbody of the report is the section that comes before the second train, if any, is described but after the first train is described. |
java.lang.String |
title()
The title of this accident type |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HeadOn(Train first,
Train second,
java.awt.geom.Point2D p)
first - First trainsecond - Second trainp - Location of accident| Method Detail |
|---|
public java.lang.String midbody()
RailAccident
midbody in class RailAccidentpublic java.lang.String title()
RailAccident
title in class RailAccident
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||