|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.traffic.controlpoint.blocks.VirtualBlock
nl.tudelft.simulation.traffic.controlpoint.blocks.VirtualSwitchBlock
The VirtualSwitchBlock defines the block to be guarded including the turning of a switch, depending on the 'line' attribute of the vehicleControl.
(c) copyright 2003-2004 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary |
| Fields inherited from class nl.tudelft.simulation.traffic.controlpoint.blocks.VirtualBlock |
busy, requestList |
| Constructor Summary | |
VirtualSwitchBlock(java.lang.String name,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
nl.tudelft.simulation.jstats.distributions.DistContinuous switchTime)
constucts a new VirtualSwitchBlock |
|
| Method Summary | |
void |
addSwitchDirection(SwitchBlockTrafficLight trafficLight,
java.util.List lineList,
double distanceRelease,
TrackInterface fromTrack,
TrackInterface toTrack)
adds a list of direction to the block for each line |
void |
requestAccess(SwitchBlockTrafficLight switchBlockTrafficLight)
requestAcess process the request to access a SwitchBlock |
protected void |
turnSwitch(TrackLinkInterface startLink,
TrackInterface fromTrack,
TrackInterface toTrack,
SwitchBlockTrafficLight switchBlockTrafficLight)
turnSwitch turns the switch to the position from fromTrack to toTrack |
| Methods inherited from class nl.tudelft.simulation.traffic.controlpoint.blocks.VirtualBlock |
getName, releaseBlock |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VirtualSwitchBlock(java.lang.String name,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface simulator,
nl.tudelft.simulation.jstats.distributions.DistContinuous switchTime)
name - the name of the VirtualSwitchBlocksimulator - switchTime - | Method Detail |
public void addSwitchDirection(SwitchBlockTrafficLight trafficLight,
java.util.List lineList,
double distanceRelease,
TrackInterface fromTrack,
TrackInterface toTrack)
trafficLight - guarding the blocklineList - list of lines that will use the direction to be setdistanceRelease - distance after the traffic light that the block
will be released for other vehiclesfromTrack - start track to set the direction of the switchtoTrack - end track to set the direction of the switchpublic void requestAccess(SwitchBlockTrafficLight switchBlockTrafficLight)
requestAccess in class VirtualBlockswitchBlockTrafficLight - correspondent switchBlockTrafficLight that
request access to the block
protected void turnSwitch(TrackLinkInterface startLink,
TrackInterface fromTrack,
TrackInterface toTrack,
SwitchBlockTrafficLight switchBlockTrafficLight)
startLink - start link of the switchfromTrack - track before the switchtoTrack - track to where the switch needs to be positionedswitchBlockTrafficLight -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||