Class Sig2JunctionModel

java.lang.Object
  |
  +--JunctionModel
        |
        +--Sig1JunctionModel
              |
              +--Sig2JunctionModel
All Implemented Interfaces:
Timed
Direct Known Subclasses:
AdaptiveSig2JunModel

public class Sig2JunctionModel
extends Sig1JunctionModel
implements Timed


Fields inherited from class JunctionModel
ei, endLanesID, iD, junctionShape, maxNum, parent, paths, pi, si, startLanesID, ticker, totalNumPaths
 
Constructor Summary
Sig2JunctionModel(int iD, java.awt.Shape s, int lighttime, boolean actuated, RoadNetwork parent)
           
 
Method Summary
 void generatePaths()
           
 java.lang.String giveInfo()
          Due to mouse Events
 void pretick()
           
 void pretickactuated()
           
 void preticknonactuated()
           
 void resetLights(int greenSide, int timerTime)
           
 void tick()
           
 
Methods inherited from class Sig1JunctionModel
drawJunctionFeatures, getNextLightSet, getNextValidLightSet, isOKToGo, isSignalled
 
Methods inherited from class JunctionModel
addEndLane, addStartLane, addToTimer, convertToArrayConvienient, createAnyLeft, createAnyOpposite, createAnyRight, createcorrespondingLeft, createcorrespondingRight, createLeftTurns, createPathBetween, createPathBetween, createPathToOppositeSide, createRightTurns, drawAllCars, getAnOpositeLaneFromEdge, getAnOpositeLaneFromJunction, getAnyOutputLane, getCar, getCenter, getID, getLeftDir, getLightsFrom, getLightsTo, getnextLane, getOpDir, getRightDir, getsharedPath, getSpeeds, hasInputOf, isOnLeftSide, isOnMapEdge, isOnRightSide, kill, receiveCar, testForLiveness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sig2JunctionModel

public Sig2JunctionModel(int iD,
                         java.awt.Shape s,
                         int lighttime,
                         boolean actuated,
                         RoadNetwork parent)
Method Detail

generatePaths

public void generatePaths()
Overrides:
generatePaths in class Sig1JunctionModel

pretick

public void pretick()
Specified by:
pretick in interface Timed
Overrides:
pretick in class Sig1JunctionModel

preticknonactuated

public void preticknonactuated()

pretickactuated

public void pretickactuated()

tick

public void tick()
Specified by:
tick in interface Timed
Overrides:
tick in class Sig1JunctionModel

resetLights

public void resetLights(int greenSide,
                        int timerTime)
Overrides:
resetLights in class Sig1JunctionModel

giveInfo

public java.lang.String giveInfo()
Due to mouse Events

Overrides:
giveInfo in class Sig1JunctionModel