The name is absent



CHAPTER 4. CODING PROCESS

12


Road

Drivelane

tfroadld:int

#1 ength: int

#alphaNode:Node

#betaNode:Node

#alphaLanes:Drivelane[]

#betaLanes:Drivelane[]

#tums:Tum[]
tfenabled :Boolean=true

tfid:int

#type:int

#road:Road

tfqueue: LinkedList

#sign:Sign
tftargets:boolean[]

#cycleAsked:int

#cyeleMoved:int

#statistics:DrivelaneStatistics

#c UrCycIeJnt

+Ro ad (alpha: int, beta: Node, length: int):
#get DriveIaneIdList (list: D rivelane[D∏nt[]
+reset O :v oid

+addAlpha Lane (lane: D rive lane): void
+rem AIphaLane (lane: Drivelane): void
+addBetaLane (lane: Drivelane) :void
+rem BetaLane (lane: DriveIaneXvoid
+addTum(t:Tum):void

+rem Tum(VTum): void

+addLane(lane:Drivelane,to:Node):void
+remLane(lane:Drivelane):void

+getOtherNode(seenfnom: Node): Node
+getWidth()1nteger

+getNum AIILanesO: Integ er

+getNum AIphaLanesO: Integer

+getNum BetaLanesOJnteger

+getNumOutboundLanes(n: No de): Integer
+getNum I nboundLanes(n:N ode) Integer
+getOutboundLanes(n:Node):Drivelane[]
+getlnboundLanes(n:N ode): Driv elane[]
+getAIILanesO:Drivelane[]

+paint (g:Gra phics,x: int,у J nt,zf: Floatyvoid
+paint (g:Gra phi es):v oid

+is Enabled O: Boolean

+setEnabled(b:Boolean):void

+Dr iv elane (road: Ro ad):

+getTail Length ɑ:lnteger

+getCom PleteLengthOHnteger

+resetθ:void

+addRoaduserAtEnd(ru: RoadwserXvoi d

+addRoad userAt End(ru: Roadwser,pos: int):voi d

+ad d Ro ad us er(ru: Roadwse/, pos:int):voi d

+re m Ro a d us e rAt St art O: Roadttser

+mayUser(ruType:int):Boolean

+get Length O: int

+get FirstRo ad use rQ.Roadιtser

+getNum RoadusersWaiti ng OJnt

+getNum B IockSWaitingO: int

+getNodeCom esFromQ:Node

+getNodeLeadsToO Node

+getTarget(target:int):Boolean

+setTarget (target: int,st ate: bool ean):voi d

+isPosFree(p osit ion JntJength: і nt): bo olean

+isT ailFreeO: bool ean

+isLast PosFnee (length: і nt): bo olean

+get Po s Free(li: List lterator,pos:int,length:int, SpeedJeftJ nt, ru:Roadwsez) Jnt

+JearCurveB oundsθ:v oid

+addCurveBounds(s:Shape):void

+pnocessStatsO÷void

+init Stat sθ:voi d

+get StatisticsO: Driv e IaneStatistics

Createdwith Poseidon forUML Community Edition. Not for Commercial Use.

Figure 4.1: UML diagram: Road and Drivelane

represents all intersections, those with traffic lights and those without traffic lights
(
NonTLJunction which is a subclass of Junction). The subclasses of SpecialNode
are EdgeNode and NetTunnel. At an EdgeNode road users will start and end their
trip.

4.2.3 Roadusers and how they move

Roaduser is the most super class representing all road users. It has 2 subclasses:
Automobile and Bicycle. Roaduser and Automobile are abstract classes. Automo-
bile
has 2 subclasses: Car and Bus. The roadusers have an attribute pos, which
represents their current position on the lane. This position is changed by its ac-
cessors at other places, like in
moveLane.



More intriguing information

1. The name is absent
2. INTERPERSONAL RELATIONS AND GROUP PROCESSES
3. Cross border cooperation –promoter of tourism development
4. Portuguese Women in Science and Technology (S&T): Some Gender Features Behind MSc. and PhD. Achievement
5. The name is absent
6. Wettbewerbs- und Industriepolitik - EU-Integration als Dritter Weg?
7. Impacts of Tourism and Fiscal Expenditure on Remote Islands in Japan: A Panel Data Analysis
8. Short Term Memory May Be the Depletion of the Readily Releasable Pool of Presynaptic Neurotransmitter Vesicles
9. Nach der Einführung von Arbeitslosengeld II: deutlich mehr Verlierer als Gewinner unter den Hilfeempfängern
10. Evaluating the Success of the School Commodity Food Program
11. Mergers and the changing landscape of commercial banking (Part II)
12. Literary criticism as such can perhaps be called the art of rereading.
13. Subduing High Inflation in Romania. How to Better Monetary and Exchange Rate Mechanisms?
14. The name is absent
15. The Veblen-Gerschenkron Effect of FDI in Mezzogiorno and East Germany
16. Job quality and labour market performance
17. Protocol for Past BP: a randomised controlled trial of different blood pressure targets for people with a history of stroke of transient ischaemic attack (TIA) in primary care
18. An Interview with Thomas J. Sargent
19. Shifting Identities and Blurring Boundaries: The Emergence of Third Space Professionals in UK Higher Education
20. Tastes, castes, and culture: The influence of society on preferences