The name is absent



CHAPTER 4. CODING PROCESS

16


TLDecision holds a tuple of a TrafficLight and a float value to represent the
reward for the TrafficLight to be kept.3

TLCFactory is used to get instances of traffic light controllers. An instance is
created in the method setTLC of SimController.

SignController decides how each sign should work. Only one instance is cre-
ated in the SimModel.

The method switchSigns is called by doStep of SimModel.

switchTrafficLights

Sign CoiiTro lie г

+CrossNodesSafelv:hooi ean- t rue

⅜shortXML.Nam e:Strinq= "Siqncontrollgr"

iin-ium_nodes:int

^generator: Random

#t !controller: TLControIIer

⅛nfra: Infrastructure

⅛curre πtSCιSign[][]

+g et I nf rast ru ct ure f): I nf rast ru ct u re

-ι-g etTLC 0:7 LContro! Ier

+svj'tcrSigrsjt,∣∣,Lid

+save Se IfCrXMLEiem ent

+get×M LN a me (JiString

+set Parent Nam e(pare nt Nam e: String)ιvoi d

<< create >>+ SignControI ler(t: TLControSIer1I'. Infrastructure): SignControI Ier

+s at I nf rast ru ct u re (і 11 nf rast ru ct u re) tv Oi d

+setTLC(t: TLControiler):void

-switchNonTrafficLights(nodeιNonTLJuncti onj decιTLDecision[Dvoi d

+SWitchTraffi cLights(nodeιJunction, decιTLDecision[])ιvoid

≠calcCverl ap(arlιSign[],ar2ιSιgn[)ιSign[]

+load(myElem ent:XMLEIem entJoader:XMLLoader):voi d

+≤ ave Ch і і d s (s ave rXM LS av e r): V oi d

Created with Poseidon for UML Community Edition. Not for Commercial Use.

Figure 4.4: UML diagram: SignController

3 from info TLDecision.java



More intriguing information

1. The name is absent
2. The name is absent
3. Global Excess Liquidity and House Prices - A VAR Analysis for OECD Countries
4. HOW WILL PRODUCTION, MARKETING, AND CONSUMPTION BE COORDINATED? FROM A FARM ORGANIZATION VIEWPOINT
5. Research Design, as Independent of Methods
6. Gerontocracy in Motion? – European Cross-Country Evidence on the Labor Market Consequences of Population Ageing
7. The name is absent
8. GENE EXPRESSION AND ITS DISCONTENTS Developmental disorders as dysfunctions of epigenetic cognition
9. The name is absent
10. The Distribution of Income of Self-employed, Entrepreneurs and Professions as Revealed from Micro Income Tax Statistics in Germany
11. L'organisation en réseau comme forme « indéterminée »
12. ¿Por qué se privatizan servicios en los municipios (pequeños)? Evidencia empírica sobre residuos sólidos y agua.
13. Wage mobility, Job mobility and Spatial mobility in the Portuguese economy
14. Geography, Health, and Demo-Economic Development
15. TRADE NEGOTIATIONS AND THE FUTURE OF AMERICAN AGRICULTURE
16. Comparison of Optimal Control Solutions in a Labor Market Model
17. Getting the practical teaching element right: A guide for literacy, numeracy and ESOL teacher educators
18. The name is absent
19. STIMULATING COOPERATION AMONG FARMERS IN A POST-SOCIALIST ECONOMY: LESSONS FROM A PUBLIC-PRIVATE MARKETING PARTNERSHIP IN POLAND
20. The name is absent