📄 simulation.ctxt
字号:
#BlueJ class context
comment0.params=inLevel
comment0.target=Simulation(Level)
comment0.text=\nConstructor\ for\ Simulation\ objects.\ Creates\ the\ initial\ runways\ and\ queues.\n\n
comment1.target=boolean\ isFinished()
comment10.target=void\ add()
comment10.text=\nAdds\ an\ aircraft\ to\ the\ simulation.\ Aircraft\ are\ generated\ in\ a\ random\ position\ at\ the\ edge\ of\ the\ simulation.\n\n
comment11.params=mean
comment11.target=int\ randomPoisson(int)
comment11.text=\nReturns\ a\ random\ number,\ where\ the\ random\ numbers\ have\ a\ Poisson\ distribution\ with\ mean\ "mean".\nThis\ algorithm\ is\ taken\ from\ Knuth,\ "The\ Art\ of\ Computer\ Programming"\ volume\ 2.\ \n@param\ \ \ mean\ \ \ \ the\ mean\ of\ the\ distribution\n@return\ \ \ \ \ a\ random\ number\n\n
comment12.target=void\ run()
comment12.text=\nRun\ the\ simulation.\ Every\ 10\ milliseconds,\ the\ simulation\ will\ move\ on\ by\ one\ unit\ of\ time.\ \n@see\ java.lang.Runnable\n\n
comment2.target=int\ getCollisions()
comment3.target=int\ getTimeTaken()
comment4.target=java.util.List<Aircraft>\ getAircraft()
comment4.text=\nAccessor\ method\ for\ the\ list\ of\ aircraft\ being\ simulated\n\n@return\ \ \ \ \ a\ list\ of\ aircraft\ being\ simulated\n\n
comment5.target=java.util.List<Runway>\ getRunways()
comment5.text=\nAccessor\ method\ for\ the\ list\ of\ runways\ being\ simulated\n\n@return\ \ \ \ \ a\ list\ of\ runways\ being\ simulated\n\n
comment6.target=java.util.List<Queue>\ getQueues()
comment6.text=\nAccessor\ method\ for\ the\ list\ of\ queues\ of\ aircraft\ being\ simulated\n\n@return\ \ \ \ \ a\ list\ of\ queues\ of\ aircraft\ being\ simulated\n\n
comment7.target=java.util.Queue<AircraftEvent>\ getAircraftEvents()
comment7.text=\nAccessor\ method\ for\ the\ queue\ of\ requests\ from\ the\ GUI\ to\ change\ the\ state\ of\ aircraft\n\n@return\ \ \ \ \ a\ queue\ of\ requests\ to\ change\ the\ state\ of\ aircraft\n\n
comment8.target=java.util.Queue<Aircraft>\ getToAdd()
comment8.text=\nAccessor\ method\ for\ the\ queue\ of\ aircraft\ the\ GUI\ should\ add\ to\ its\ list\ of\ aircraft.\nThis\ method\ is\ provided\ so\ that\ GUIs\ which\ keep\ a\ list\ of\ aircraft\ in\ the\ simulation\ only\ need\ to\ add\ new\ aircraft,\ rather\ than\ refreshing\ the\ entire\ list.\n\n@return\ \ \ \ \ a\ queue\ of\ aircraft\ which\ the\ GUI\ should\ add\ to\ its\ list\ of\ aircraft\n\n
comment9.target=java.util.Queue<Aircraft>\ getToRemove()
comment9.text=\nAccessor\ method\ for\ the\ queue\ of\ aircraft\ the\ GUI\ should\ remove\ from\ its\ list\ of\ aircraft\nThis\ method\ is\ provided\ so\ that\ GUIs\ which\ keep\ a\ list\ of\ aircraft\ in\ the\ simulation\ only\ need\ to\ remove\ aircraft\ that\ have\ been\ removed,\ rather\ than\ refreshing\ the\ entire\ list.\n\n@return\ \ \ \ \ a\ queue\ of\ aircraft\ which\ the\ GUI\ should\ remove\ from\ its\ list\ of\ aircraft\n\n
numComments=13
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -