Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class LaneSection

    java.lang.Object
      |
      +--CarContainer
            |
            +--LaneSection

public class LaneSection
extends CarContainer

Fields inherited from class CarContainer
`NOTHING_IN_FRONT`

Constructor Summary
`LaneSection(int iD, LaneModel parent, int startX, int startY, int endX, int endY)`

Method Summary
`int` | `getParentID()`
`boolean` | `isLastOne()`
`double[]` | `isOKToGo(Car car, double[] inFrontInfo, double distToEnd)`
`CarContainer` | `onToNext()`

Methods inherited from class CarContainer
`addCar, anycollisions, drawAllCars, drawIDs, getCar, getdx, getdy, getendX, getendY, getGeneralDirection, getGradient, getID, getMidX, getMidY, getNextObInFront, getRadAngle, getSpeeds, getstartX, getstartY, hasCars, isFirstOne, kill, numStationaryCars, removeCar`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### LaneSection

    public LaneSection(int iD,
                       LaneModel parent,
                       int startX,
                       int startY,
                       int endX,
                       int endY)

Method Detail

### isLastOne

    public boolean isLastOne()

  Specified by:
    `isLastOne` in class `CarContainer`

### onToNext

    public CarContainer onToNext()

  Specified by:
    `onToNext` in class `CarContainer`

### isOKToGo

    public double[] isOKToGo(Car car,
                             double[] inFrontInfo,
                             double distToEnd)

  Overrides:
    `isOKToGo` in class `CarContainer`

### getParentID

    public int getParentID()

  Specified by:
    `getParentID` in class `CarContainer`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD