From f14372efb8d982126c6cafb1b1d7ba3848a471f5 Mon Sep 17 00:00:00 2001 From: "Loch Christian (uib05376)" Date: Sun, 15 Nov 2020 16:34:32 +0100 Subject: [PATCH] Add generated api documentation --- doc/apidoc/allclasses-frame.html | 33 + doc/apidoc/allclasses-noframe.html | 33 + doc/apidoc/constant-values.html | 211 +++ .../trafficsim/ExampleInstrumentedTest.html | 299 ++++ .../de/hems/trafficsim/ExampleUnitTest.html | 305 ++++ .../de/hems/trafficsim/MainActivity.html | 1298 +++++++++++++++++ doc/apidoc/de/hems/trafficsim/Renderer.html | 606 ++++++++ .../de/hems/trafficsim/TimeRecordView.html | 753 ++++++++++ doc/apidoc/de/hems/trafficsim/Track.html | 1011 +++++++++++++ doc/apidoc/de/hems/trafficsim/Vehicle.html | 605 ++++++++ .../de/hems/trafficsim/VehicleTimeRecord.html | 452 ++++++ doc/apidoc/de/hems/trafficsim/Worker.html | 568 ++++++++ .../de/hems/trafficsim/package-frame.html | 35 + .../de/hems/trafficsim/package-summary.html | 206 +++ .../de/hems/trafficsim/package-tree.html | 241 +++ doc/apidoc/deprecated-list.html | 126 ++ doc/apidoc/help-doc.html | 252 ++++ doc/apidoc/index-files/index-1.html | 152 ++ doc/apidoc/index-files/index-10.html | 182 +++ doc/apidoc/index-files/index-11.html | 226 +++ doc/apidoc/index-files/index-12.html | 182 +++ doc/apidoc/index-files/index-13.html | 190 +++ doc/apidoc/index-files/index-14.html | 258 ++++ doc/apidoc/index-files/index-15.html | 248 ++++ doc/apidoc/index-files/index-16.html | 185 +++ doc/apidoc/index-files/index-17.html | 205 +++ doc/apidoc/index-files/index-18.html | 182 +++ doc/apidoc/index-files/index-19.html | 177 +++ doc/apidoc/index-files/index-2.html | 159 ++ doc/apidoc/index-files/index-3.html | 160 ++ doc/apidoc/index-files/index-4.html | 221 +++ doc/apidoc/index-files/index-5.html | 152 ++ doc/apidoc/index-files/index-6.html | 270 ++++ doc/apidoc/index-files/index-7.html | 166 +++ doc/apidoc/index-files/index-8.html | 159 ++ doc/apidoc/index-files/index-9.html | 159 ++ doc/apidoc/index.html | 78 + doc/apidoc/overview-tree.html | 240 +++ doc/apidoc/package-list | 1 + doc/apidoc/script.js | 30 + doc/apidoc/stylesheet.css | 574 ++++++++ 41 files changed, 11590 insertions(+) create mode 100644 doc/apidoc/allclasses-frame.html create mode 100644 doc/apidoc/allclasses-noframe.html create mode 100644 doc/apidoc/constant-values.html create mode 100644 doc/apidoc/de/hems/trafficsim/ExampleInstrumentedTest.html create mode 100644 doc/apidoc/de/hems/trafficsim/ExampleUnitTest.html create mode 100644 doc/apidoc/de/hems/trafficsim/MainActivity.html create mode 100644 doc/apidoc/de/hems/trafficsim/Renderer.html create mode 100644 doc/apidoc/de/hems/trafficsim/TimeRecordView.html create mode 100644 doc/apidoc/de/hems/trafficsim/Track.html create mode 100644 doc/apidoc/de/hems/trafficsim/Vehicle.html create mode 100644 doc/apidoc/de/hems/trafficsim/VehicleTimeRecord.html create mode 100644 doc/apidoc/de/hems/trafficsim/Worker.html create mode 100644 doc/apidoc/de/hems/trafficsim/package-frame.html create mode 100644 doc/apidoc/de/hems/trafficsim/package-summary.html create mode 100644 doc/apidoc/de/hems/trafficsim/package-tree.html create mode 100644 doc/apidoc/deprecated-list.html create mode 100644 doc/apidoc/help-doc.html create mode 100644 doc/apidoc/index-files/index-1.html create mode 100644 doc/apidoc/index-files/index-10.html create mode 100644 doc/apidoc/index-files/index-11.html create mode 100644 doc/apidoc/index-files/index-12.html create mode 100644 doc/apidoc/index-files/index-13.html create mode 100644 doc/apidoc/index-files/index-14.html create mode 100644 doc/apidoc/index-files/index-15.html create mode 100644 doc/apidoc/index-files/index-16.html create mode 100644 doc/apidoc/index-files/index-17.html create mode 100644 doc/apidoc/index-files/index-18.html create mode 100644 doc/apidoc/index-files/index-19.html create mode 100644 doc/apidoc/index-files/index-2.html create mode 100644 doc/apidoc/index-files/index-3.html create mode 100644 doc/apidoc/index-files/index-4.html create mode 100644 doc/apidoc/index-files/index-5.html create mode 100644 doc/apidoc/index-files/index-6.html create mode 100644 doc/apidoc/index-files/index-7.html create mode 100644 doc/apidoc/index-files/index-8.html create mode 100644 doc/apidoc/index-files/index-9.html create mode 100644 doc/apidoc/index.html create mode 100644 doc/apidoc/overview-tree.html create mode 100644 doc/apidoc/package-list create mode 100644 doc/apidoc/script.js create mode 100644 doc/apidoc/stylesheet.css diff --git a/doc/apidoc/allclasses-frame.html b/doc/apidoc/allclasses-frame.html new file mode 100644 index 0000000..897061e --- /dev/null +++ b/doc/apidoc/allclasses-frame.html @@ -0,0 +1,33 @@ + + + + + + All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/apidoc/allclasses-noframe.html b/doc/apidoc/allclasses-noframe.html new file mode 100644 index 0000000..32b8903 --- /dev/null +++ b/doc/apidoc/allclasses-noframe.html @@ -0,0 +1,33 @@ + + + + + + All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/apidoc/constant-values.html b/doc/apidoc/constant-values.html new file mode 100644 index 0000000..6f62bf3 --- /dev/null +++ b/doc/apidoc/constant-values.html @@ -0,0 +1,211 @@ + + + + + + Constant Field Values + + + + + + + + +
+ + + + + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

de.hems.*

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/de/hems/trafficsim/ExampleInstrumentedTest.html b/doc/apidoc/de/hems/trafficsim/ExampleInstrumentedTest.html new file mode 100644 index 0000000..9842a53 --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/ExampleInstrumentedTest.html @@ -0,0 +1,299 @@ + + + + + + ExampleInstrumentedTest + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.hems.trafficsim
+

Class ExampleInstrumentedTest

+
+
+ +
+
    +
  • +
    +
    +
    public class ExampleInstrumentedTest
    +extends java.lang.Object
    +
    Instrumented test, which will execute on an Android device.
    +
    +
    See Also:
    +
    Testing documentation
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voiduseAppContext()  +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        + clone, equals, finalize, getClass, hashCode, notify, + notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ExampleInstrumentedTest

        +
        public ExampleInstrumentedTest()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        useAppContext

        +
        public void useAppContext()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/de/hems/trafficsim/ExampleUnitTest.html b/doc/apidoc/de/hems/trafficsim/ExampleUnitTest.html new file mode 100644 index 0000000..c96820f --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/ExampleUnitTest.html @@ -0,0 +1,305 @@ + + + + + + ExampleUnitTest + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.hems.trafficsim
+

Class ExampleUnitTest

+
+
+ +
+
    +
  • +
    +
    +
    public class ExampleUnitTest
    +extends java.lang.Object
    +
    Example local unit test, which will execute on the development + machine (host). +
    +
    +
    See Also:
    +
    Testing documentation
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors  +
      Constructor and Description
      ExampleUnitTest()  +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidaddition_isCorrect()  +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        + clone, equals, finalize, getClass, hashCode, notify, + notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ExampleUnitTest

        +
        public ExampleUnitTest()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addition_isCorrect

        +
        public void addition_isCorrect()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/de/hems/trafficsim/MainActivity.html b/doc/apidoc/de/hems/trafficsim/MainActivity.html new file mode 100644 index 0000000..15b964a --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/MainActivity.html @@ -0,0 +1,1298 @@ + + + + + + MainActivity + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.hems.trafficsim
+

Class MainActivity

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    android.content.ComponentCallbacks, android.content.ComponentCallbacks2, + android.view.KeyEvent.Callback, android.view.LayoutInflater.Factory, + android.view.LayoutInflater.Factory2, + android.view.View.OnCreateContextMenuListener, android.view.Window.Callback, + android.widget.SeekBar.OnSeekBarChangeListener, + androidx.activity.OnBackPressedDispatcherOwner, + androidx.appcompat.app.ActionBarDrawerToggle.DelegateProvider, + androidx.appcompat.app.AppCompatCallback, + androidx.core.app.ActivityCompat.OnRequestPermissionsResultCallback, + androidx.core.app.ActivityCompat.RequestPermissionsRequestCodeValidator, + androidx.core.app.TaskStackBuilder.SupportParentable, + androidx.core.view.KeyEventDispatcher.Component, + androidx.lifecycle.LifecycleOwner, androidx.lifecycle.ViewModelStoreOwner, + androidx.savedstate.SavedStateRegistryOwner +
    +
    +
    +
    +
    public class MainActivity
    +extends androidx.appcompat.app.AppCompatActivity
    +implements android.widget.SeekBar.OnSeekBarChangeListener
    +
    Main user interface class, containing all necessary gui elements + and their control flow. +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class androidx.core.app.ComponentActivity

        + androidx.core.app.ComponentActivity.ExtraData
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      static floatdefaultBrakeProb +
      default value of brake probability
      +
      static intdefaultDelay +
      default value of the delay between two + simulation steps +
      +
      static intdefaultFrameskip +
      default value of the number of vehicles on + the track +
      +
      static intdefaultHistoryLength +
      default value of the number of vehicles on + the track +
      +
      static floatdefaultMaxVelocity +
      default value of the maximum velocity of the + vehicles +
      +
      static intdefaultNoOfVehicles +
      default value of the number of vehicles on + the track +
      +
      static intdefaultTrackLength +
      default value of the length of the track +
      +
      protected Rendererrenderer +
      the renderer instance drawing the track + history +
      +
      protected Tracktrack +
      the track to show in the activity
      +
      protected TimeRecordView + trackView +
      the surface view on which the renderer draws + the track history +
      +
      protected + android.widget.LinearLayoutviewStack +
      the layout which keeps the surface view
      +
      protected Workerworker +
      the thread which runs the simulation and + visualization +
      +
      +
        +
      • + + +

        Fields inherited from class android.app.Activity

        + DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, + DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, + DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, + RESULT_FIRST_USER, RESULT_OK
      • +
      +
        +
      • + + +

        Fields inherited from class android.content.Context

        + ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, + ALARM_SERVICE, APP_OPS_SERVICE, APPWIDGET_SERVICE, + AUDIO_SERVICE, BATTERY_SERVICE, BIND_ABOVE_CLIENT, + BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, + BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_EXTERNAL_SERVICE, + BIND_IMPORTANT, BIND_INCLUDE_CAPABILITIES, BIND_NOT_FOREGROUND, + BIND_NOT_PERCEPTIBLE, BIND_WAIVE_PRIORITY, BIOMETRIC_SERVICE, + BLOB_STORE_SERVICE, BLUETOOTH_SERVICE, CAMERA_SERVICE, + CAPTIONING_SERVICE, CARRIER_CONFIG_SERVICE, CLIPBOARD_SERVICE, + COMPANION_DEVICE_SERVICE, CONNECTIVITY_DIAGNOSTICS_SERVICE, + CONNECTIVITY_SERVICE, CONSUMER_IR_SERVICE, + CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, + CONTEXT_RESTRICTED, CROSS_PROFILE_APPS_SERVICE, + DEVICE_POLICY_SERVICE, DISPLAY_SERVICE, DOWNLOAD_SERVICE, + DROPBOX_SERVICE, EUICC_SERVICE, FILE_INTEGRITY_SERVICE, + FINGERPRINT_SERVICE, HARDWARE_PROPERTIES_SERVICE, + INPUT_METHOD_SERVICE, INPUT_SERVICE, IPSEC_SERVICE, + JOB_SCHEDULER_SERVICE, KEYGUARD_SERVICE, LAUNCHER_APPS_SERVICE, + LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, + MEDIA_PROJECTION_SERVICE, MEDIA_ROUTER_SERVICE, + MEDIA_SESSION_SERVICE, MIDI_SERVICE, MODE_APPEND, + MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, + MODE_NO_LOCALIZED_COLLATORS, MODE_PRIVATE, MODE_WORLD_READABLE, + MODE_WORLD_WRITEABLE, NETWORK_STATS_SERVICE, NFC_SERVICE, + NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, PRINT_SERVICE, + RECEIVER_VISIBLE_TO_INSTANT_APPS, RESTRICTIONS_SERVICE, + ROLE_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, SHORTCUT_SERVICE, + STORAGE_SERVICE, STORAGE_STATS_SERVICE, SYSTEM_HEALTH_SERVICE, + TELECOM_SERVICE, TELEPHONY_IMS_SERVICE, TELEPHONY_SERVICE, + TELEPHONY_SUBSCRIPTION_SERVICE, TEXT_CLASSIFICATION_SERVICE, + TEXT_SERVICES_MANAGER_SERVICE, TV_INPUT_SERVICE, + UI_MODE_SERVICE, USAGE_STATS_SERVICE, USB_SERVICE, USER_SERVICE, + VIBRATOR_SERVICE, VPN_MANAGEMENT_SERVICE, WALLPAPER_SERVICE, + WIFI_AWARE_SERVICE, WIFI_P2P_SERVICE, WIFI_RTT_RANGING_SERVICE, + WIFI_SERVICE, WINDOW_SERVICE
      • +
      +
        +
      • + + +

        Fields inherited from interface android.content.ComponentCallbacks2

        + TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, + TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, + TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, + TRIM_MEMORY_UI_HIDDEN
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors  +
      Constructor and Description
      MainActivity()  +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidonClearButtonClick(android.view.View view) +
      Handler function for clicks on the "Stop" + button. +
      +
      protected voidonCreate(android.os.Bundle savedInstanceState) +
      Constructor for MainActivity
      +
      voidonPlayButtonClick(android.view.View view) +
      Handler function for clicks on the "Play" + button. +
      +
      voidonProgressChanged(android.widget.SeekBar seekBar, + int progress, + boolean fromUser) +
      Handler function for changes on the seek + bars. +
      +
      voidonStartTrackingTouch(android.widget.SeekBar seekBar) +
      Handler function for beginning touch events + on a seek bar. +
      +
      voidonStepButtonClick(android.view.View view) +
      Handler function for clicks on the "Step" + button. +
      +
      voidonStopButtonClick(android.view.View view) +
      Handler function for clicks on the "Stop" + button. +
      +
      voidonStopTrackingTouch(android.widget.SeekBar seekBar) +
      Handler function for ending touch events on a + seek bar. +
      +
      static floatround(float number, + int digits) +
      Utility function to round a float to a given + amount of digits. +
      +
      protected voidstopWorker() +
      Stops the current worker thread.
      +
      voidupdateStats() +
      Updates the statistics view.
      +
      protected voidupdateTrack() +
      Creates a new track with the current + settings. +
      +
      +
        +
      • + + +

        Methods inherited from class androidx.appcompat.app.AppCompatActivity

        + addContentView, attachBaseContext, closeOptionsMenu, + dispatchKeyEvent, findViewById, getDelegate, + getDrawerToggleDelegate, getMenuInflater, getResources, + getSupportActionBar, getSupportParentActivityIntent, + invalidateOptionsMenu, onConfigurationChanged, onContentChanged, + onCreateSupportNavigateUpTaskStack, onDestroy, onKeyDown, + onMenuItemSelected, onMenuOpened, onNightModeChanged, + onPanelClosed, onPostCreate, onPostResume, + onPrepareSupportNavigateUpTaskStack, onSaveInstanceState, + onStart, onStop, onSupportActionModeFinished, + onSupportActionModeStarted, onSupportContentChanged, + onSupportNavigateUp, onTitleChanged, + onWindowStartingSupportActionMode, openOptionsMenu, + setContentView, setContentView, setContentView, + setSupportActionBar, setSupportProgress, + setSupportProgressBarIndeterminate, + setSupportProgressBarIndeterminateVisibility, + setSupportProgressBarVisibility, setTheme, + startSupportActionMode, supportInvalidateOptionsMenu, + supportNavigateUpTo, supportRequestWindowFeature, + supportShouldUpRecreateTask
      • +
      +
        +
      • + + +

        Methods inherited from class androidx.fragment.app.FragmentActivity

        + dump, getSupportFragmentManager, getSupportLoaderManager, + onActivityResult, onAttachFragment, onCreatePanelMenu, + onCreateView, onCreateView, onLowMemory, + onMultiWindowModeChanged, onNewIntent, onPause, + onPictureInPictureModeChanged, onPrepareOptionsPanel, + onPreparePanel, onRequestPermissionsResult, onResume, + onResumeFragments, onStateNotSaved, + setEnterSharedElementCallback, setExitSharedElementCallback, + startActivityForResult, startActivityForResult, + startActivityFromFragment, startActivityFromFragment, + startIntentSenderForResult, startIntentSenderForResult, + startIntentSenderFromFragment, supportFinishAfterTransition, + supportPostponeEnterTransition, + supportStartPostponedEnterTransition, + validateRequestPermissionsRequestCode
      • +
      +
        +
      • + + +

        Methods inherited from class androidx.activity.ComponentActivity

        + getLastCustomNonConfigurationInstance, getLifecycle, + getOnBackPressedDispatcher, getSavedStateRegistry, + getViewModelStore, onBackPressed, + onRetainCustomNonConfigurationInstance, + onRetainNonConfigurationInstance
      • +
      +
        +
      • + + +

        Methods inherited from class androidx.core.app.ComponentActivity

        + dispatchKeyShortcutEvent, getExtraData, putExtraData, + superDispatchKeyEvent
      • +
      +
        +
      • + + +

        Methods inherited from class android.app.Activity

        + closeContextMenu, createPendingResult, dismissDialog, + dismissKeyboardShortcutsHelper, dispatchGenericMotionEvent, + dispatchPopulateAccessibilityEvent, dispatchTouchEvent, + dispatchTrackballEvent, enterPictureInPictureMode, + enterPictureInPictureMode, finish, finishActivity, + finishActivityFromChild, finishAffinity, finishAfterTransition, + finishAndRemoveTask, finishFromChild, getActionBar, + getApplication, getCallingActivity, getCallingPackage, + getChangingConfigurations, getComponentName, getContentScene, + getContentTransitionManager, getCurrentFocus, + getFragmentManager, getIntent, getLastNonConfigurationInstance, + getLayoutInflater, getLoaderManager, getLocalClassName, + getMaxNumPictureInPictureActions, getMediaController, getParent, + getParentActivityIntent, getPreferences, getReferrer, + getRequestedOrientation, getSearchEvent, getSystemService, + getTaskId, getTitle, getTitleColor, getVoiceInteractor, + getVolumeControlStream, getWindow, getWindowManager, + hasWindowFocus, isActivityTransitionRunning, + isChangingConfigurations, isChild, isDestroyed, isFinishing, + isImmersive, isInMultiWindowMode, isInPictureInPictureMode, + isLocalVoiceInteractionSupported, isTaskRoot, + isVoiceInteraction, isVoiceInteractionRoot, managedQuery, + moveTaskToBack, navigateUpTo, navigateUpToFromChild, + onActionModeFinished, onActionModeStarted, onActivityReenter, + onApplyThemeResource, onAttachedToWindow, onAttachFragment, + onChildTitleChanged, onContextItemSelected, onContextMenuClosed, + onCreate, onCreateContextMenu, onCreateDescription, + onCreateDialog, onCreateDialog, onCreateNavigateUpTaskStack, + onCreateOptionsMenu, onCreatePanelView, onCreateThumbnail, + onDetachedFromWindow, onEnterAnimationComplete, + onGenericMotionEvent, onGetDirectActions, onKeyLongPress, + onKeyMultiple, onKeyShortcut, onKeyUp, + onLocalVoiceInteractionStarted, onLocalVoiceInteractionStopped, + onMultiWindowModeChanged, onNavigateUp, onNavigateUpFromChild, + onOptionsItemSelected, onOptionsMenuClosed, + onPerformDirectAction, onPictureInPictureModeChanged, + onPictureInPictureRequested, onPostCreate, onPrepareDialog, + onPrepareDialog, onPrepareNavigateUpTaskStack, + onPrepareOptionsMenu, onProvideAssistContent, + onProvideAssistData, onProvideKeyboardShortcuts, + onProvideReferrer, onRestart, onRestoreInstanceState, + onRestoreInstanceState, onSaveInstanceState, onSearchRequested, + onSearchRequested, onTopResumedActivityChanged, onTouchEvent, + onTrackballEvent, onTrimMemory, onUserInteraction, + onUserLeaveHint, onVisibleBehindCanceled, + onWindowAttributesChanged, onWindowFocusChanged, + onWindowStartingActionMode, onWindowStartingActionMode, + openContextMenu, overridePendingTransition, + postponeEnterTransition, recreate, + registerActivityLifecycleCallbacks, registerForContextMenu, + releaseInstance, removeDialog, reportFullyDrawn, + requestDragAndDropPermissions, requestPermissions, + requestShowKeyboardShortcuts, requestVisibleBehind, + requestWindowFeature, requireViewById, runOnUiThread, + setActionBar, setContentTransitionManager, setDefaultKeyMode, + setEnterSharedElementCallback, setExitSharedElementCallback, + setFeatureDrawable, setFeatureDrawableAlpha, + setFeatureDrawableResource, setFeatureDrawableUri, + setFinishOnTouchOutside, setImmersive, setInheritShowWhenLocked, + setIntent, setLocusContext, setMediaController, + setPictureInPictureParams, setProgress, + setProgressBarIndeterminate, + setProgressBarIndeterminateVisibility, setProgressBarVisibility, + setRequestedOrientation, setResult, setResult, + setSecondaryProgress, setShowWhenLocked, setTaskDescription, + setTitle, setTitle, setTitleColor, setTranslucent, + setTurnScreenOn, setVisible, setVolumeControlStream, + setVrModeEnabled, shouldShowRequestPermissionRationale, + shouldUpRecreateTask, showAssist, showDialog, showDialog, + showLockTaskEscapeMessage, startActionMode, startActionMode, + startActivities, startActivities, startActivity, startActivity, + startActivityFromChild, startActivityFromChild, + startActivityFromFragment, startActivityFromFragment, + startActivityIfNeeded, startActivityIfNeeded, startIntentSender, + startIntentSender, startIntentSenderFromChild, + startIntentSenderFromChild, startLocalVoiceInteraction, + startLockTask, startManagingCursor, startNextMatchingActivity, + startNextMatchingActivity, startPostponedEnterTransition, + startSearch, stopLocalVoiceInteraction, stopLockTask, + stopManagingCursor, takeKeyEvents, triggerSearch, + unregisterActivityLifecycleCallbacks, + unregisterForContextMenu
      • +
      +
        +
      • + + +

        Methods inherited from class android.view.ContextThemeWrapper

        + applyOverrideConfiguration, getAssets, getTheme, + setTheme
      • +
      +
        +
      • + + +

        Methods inherited from + class android.content.ContextWrapper

        + bindIsolatedService, bindService, bindService, + bindServiceAsUser, checkCallingOrSelfPermission, + checkCallingOrSelfUriPermission, checkCallingPermission, + checkCallingUriPermission, checkPermission, checkSelfPermission, + checkUriPermission, checkUriPermission, clearWallpaper, + createAttributionContext, createConfigurationContext, + createContextForSplit, createDeviceProtectedStorageContext, + createDisplayContext, createPackageContext, createWindowContext, + databaseList, deleteDatabase, deleteFile, + deleteSharedPreferences, enforceCallingOrSelfPermission, + enforceCallingOrSelfUriPermission, enforceCallingPermission, + enforceCallingUriPermission, enforcePermission, + enforceUriPermission, enforceUriPermission, fileList, + getApplicationContext, getApplicationInfo, getAttributionTag, + getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, + getContentResolver, getDatabasePath, getDataDir, getDir, + getDisplay, getExternalCacheDir, getExternalCacheDirs, + getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, + getFilesDir, getFileStreamPath, getMainExecutor, getMainLooper, + getNoBackupFilesDir, getObbDir, getObbDirs, getOpPackageName, + getPackageCodePath, getPackageManager, getPackageName, + getPackageResourcePath, getSharedPreferences, + getSystemServiceName, getWallpaper, + getWallpaperDesiredMinimumHeight, + getWallpaperDesiredMinimumWidth, grantUriPermission, + isDeviceProtectedStorage, isRestricted, moveDatabaseFrom, + moveSharedPreferencesFrom, openFileInput, openFileOutput, + openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, + registerReceiver, registerReceiver, registerReceiver, + registerReceiver, removeStickyBroadcast, + removeStickyBroadcastAsUser, revokeUriPermission, + revokeUriPermission, sendBroadcast, sendBroadcast, + sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, + sendOrderedBroadcast, sendOrderedBroadcast, + sendOrderedBroadcast, sendOrderedBroadcastAsUser, + sendStickyBroadcast, sendStickyBroadcastAsUser, + sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, + setWallpaper, setWallpaper, startForegroundService, + startInstrumentation, startService, stopService, unbindService, + unregisterReceiver, updateServiceGroup
      • +
      +
        +
      • + + +

        Methods inherited from class android.content.Context

        + getColor, getColorStateList, getDrawable, getString, + getString, getSystemService, getText, obtainStyledAttributes, + obtainStyledAttributes, obtainStyledAttributes, + obtainStyledAttributes, registerComponentCallbacks, + sendBroadcastWithMultiplePermissions, + unregisterComponentCallbacks
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        + clone, equals, finalize, getClass, hashCode, notify, + notifyAll, toString, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface android.view.Window.Callback

        + onPointerCaptureChanged
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        defaultNoOfVehicles

        +
        public static final int defaultNoOfVehicles
        +
        default value of the number of vehicles on the + track +
        +
        +
        See Also:
        +
        + Constant + Field Values
        +
        +
      • +
      + + + +
        +
      • +

        defaultTrackLength

        +
        public static final int defaultTrackLength
        +
        default value of the length of the track
        +
        +
        See Also:
        +
        + Constant + Field Values
        +
        +
      • +
      + + + +
        +
      • +

        defaultBrakeProb

        +
        public static final float defaultBrakeProb
        +
        default value of brake probability
        +
        +
        See Also:
        +
        + Constant + Field Values
        +
        +
      • +
      + + + +
        +
      • +

        defaultMaxVelocity

        +
        public static final float defaultMaxVelocity
        +
        default value of the maximum velocity of the + vehicles +
        +
        +
        See Also:
        +
        + Constant + Field Values
        +
        +
      • +
      + + + +
        +
      • +

        defaultDelay

        +
        public static final int defaultDelay
        +
        default value of the delay between two simulation + steps +
        +
        +
        See Also:
        +
        + Constant + Field Values
        +
        +
      • +
      + + + +
        +
      • +

        defaultHistoryLength

        +
        public static final int defaultHistoryLength
        +
        default value of the number of vehicles on the + track +
        +
        +
        See Also:
        +
        + Constant + Field Values
        +
        +
      • +
      + + + +
        +
      • +

        defaultFrameskip

        +
        public static final int defaultFrameskip
        +
        default value of the number of vehicles on the + track +
        +
        +
        See Also:
        +
        + Constant + Field Values
        +
        +
      • +
      + + + +
        +
      • +

        track

        +
        protected Track track
        +
        the track to show in the activity
        +
      • +
      + + + +
        +
      • +

        trackView

        +
        protected TimeRecordView trackView
        +
        the surface view on which the renderer draws the + track history +
        +
      • +
      + + + +
        +
      • +

        worker

        +
        protected Worker worker
        +
        the thread which runs the simulation and + visualization +
        +
      • +
      + + + +
        +
      • +

        renderer

        +
        protected Renderer renderer
        +
        the renderer instance drawing the track history +
        +
      • +
      + + + +
        +
      • +

        viewStack

        +
        protected android.widget.LinearLayout viewStack
        +
        the layout which keeps the surface view
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MainActivity

        +
        public MainActivity()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onCreate

        +
        protected void onCreate(android.os.Bundle savedInstanceState)
        +
        Constructor for MainActivity
        +
        +
        Overrides:
        +
        onCreate in class androidx.appcompat.app.AppCompatActivity +
        +
        Parameters:
        +
        savedInstanceState - Bundle with previously + saved activity state, otherwise null +
        +
        +
      • +
      + + + +
        +
      • +

        round

        +
        public static float round(float number,
        +                          int digits)
        +
        Utility function to round a float to a given + amount of digits. +
        +
        +
        Parameters:
        +
        number - number to round
        +
        digits - amount of digits
        +
        Returns:
        +
        rounded number
        +
        +
      • +
      + + + +
        +
      • +

        updateStats

        +
        public void updateStats()
        +
        Updates the statistics view.
        +
      • +
      + + + +
        +
      • +

        onStepButtonClick

        +
        public void onStepButtonClick(android.view.View view)
        +
        Handler function for clicks on the "Step" + button. +
        +
        +
        Parameters:
        +
        view - the view the event is generated from +
        +
        +
      • +
      + + + +
        +
      • +

        onPlayButtonClick

        +
        public void onPlayButtonClick(android.view.View view)
        +
        Handler function for clicks on the "Play" + button. +
        +
        +
        Parameters:
        +
        view - the view the event is generated from +
        +
        +
      • +
      + + + +
        +
      • +

        onStopButtonClick

        +
        public void onStopButtonClick(android.view.View view)
        +
        Handler function for clicks on the "Stop" + button. +
        +
        +
        Parameters:
        +
        view - the view the event is generated from +
        +
        +
      • +
      + + + +
        +
      • +

        stopWorker

        +
        protected void stopWorker()
        +
        Stops the current worker thread.
        +
      • +
      + + + +
        +
      • +

        onClearButtonClick

        +
        public void onClearButtonClick(android.view.View view)
        +
        Handler function for clicks on the "Stop" + button. +
        +
        +
        Parameters:
        +
        view - the view the event is generated from +
        +
        +
      • +
      + + + +
        +
      • +

        updateTrack

        +
        protected void updateTrack()
        +
        Creates a new track with the current settings. + This methods restarts the simulation it + it was running before. +
        +
      • +
      + + + +
        +
      • +

        onProgressChanged

        +
        public void onProgressChanged(android.widget.SeekBar seekBar,
        +                              int progress,
        +                              boolean fromUser)
        +
        Handler function for changes on the seek bars. +
        +
        +
        Specified by:
        +
        onProgressChanged in interface android.widget.SeekBar.OnSeekBarChangeListener +
        +
        Parameters:
        +
        seekBar - the seek bar changed
        +
        progress - the new progress value of the seek + bar +
        +
        fromUser - flag if the event is the result of + an user action +
        +
        +
      • +
      + + + +
        +
      • +

        onStartTrackingTouch

        +
        public void onStartTrackingTouch(android.widget.SeekBar seekBar)
        +
        Handler function for beginning touch events on a + seek bar. +
        +
        +
        Specified by:
        +
        onStartTrackingTouch in + interface android.widget.SeekBar.OnSeekBarChangeListener +
        +
        Parameters:
        +
        seekBar - the seek bar touched
        +
        +
      • +
      + + + +
        +
      • +

        onStopTrackingTouch

        +
        public void onStopTrackingTouch(android.widget.SeekBar seekBar)
        +
        Handler function for ending touch events on a + seek bar. +
        +
        +
        Specified by:
        +
        onStopTrackingTouch in + interface android.widget.SeekBar.OnSeekBarChangeListener +
        +
        Parameters:
        +
        seekBar - the seek bar touched
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/de/hems/trafficsim/Renderer.html b/doc/apidoc/de/hems/trafficsim/Renderer.html new file mode 100644 index 0000000..9b32e91 --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/Renderer.html @@ -0,0 +1,606 @@ + + + + + + Renderer + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.hems.trafficsim
+

Class Renderer

+
+
+ +
+
    +
  • +
    +
    +
    public class Renderer
    +extends java.lang.Object
    +
    User interface class rendering the track history on a + SurfaceView. +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected intheight +
      height of the surface to draw to
      +
      protected + android.view.SurfaceHolderholder +
      holder of the surface the renderer draws to +
      +
      protected android.graphics.Paint + paint +
      Paint instance of the renderer
      +
      protected intpixelPerLine +
      height of a rectangle representing one + vehicle +
      +
      protected intpixelPerVehicle +
      width of a rectangle representing one + vehicle +
      +
      protected floattooShortPerHeight +
      amount of pixels per height which are lost by + rounding +
      +
      protected floattooShortPerTrackLength +
      amount of pixels per track position which are + lost by rounding +
      +
      protected Tracktrack +
      the track to render
      +
      protected intwidth +
      width of the surface to draw to
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors  +
      Constructor and Description
      Renderer(Track track, + android.view.SurfaceHolder holder) +
      Constuctor for a Renderer.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voiddraw() +
      Draws the current state of the track history + to the Surface. +
      +
      protected intgetColor(float curVelocity, + float maxVelocity) +
      Utility function which calculates a color + from the relation between the current speed of a + vehicle and it's maximum speed (from red over yellow to + green). +
      +
      voidsetSize(int width, + int height) +
      Updates the dimension information of the + renderer. +
      +
      voidsetTrack(Track track) +
      Updates the track of the Surface.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        + clone, equals, finalize, getClass, hashCode, notify, + notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        track

        +
        protected Track track
        +
        the track to render
        +
      • +
      + + + +
        +
      • +

        pixelPerVehicle

        +
        protected int pixelPerVehicle
        +
        width of a rectangle representing one vehicle +
        +
      • +
      + + + +
        +
      • +

        pixelPerLine

        +
        protected int pixelPerLine
        +
        height of a rectangle representing one vehicle +
        +
      • +
      + + + +
        +
      • +

        tooShortPerTrackLength

        +
        protected float tooShortPerTrackLength
        +
        amount of pixels per track position which are + lost by rounding +
        +
      • +
      + + + +
        +
      • +

        tooShortPerHeight

        +
        protected float tooShortPerHeight
        +
        amount of pixels per height which are lost by + rounding +
        +
      • +
      + + + +
        +
      • +

        paint

        +
        protected android.graphics.Paint paint
        +
        Paint instance of the renderer
        +
      • +
      + + + +
        +
      • +

        holder

        +
        protected android.view.SurfaceHolder holder
        +
        holder of the surface the renderer draws to
        +
      • +
      + + + +
        +
      • +

        width

        +
        protected int width
        +
        width of the surface to draw to
        +
      • +
      + + + +
        +
      • +

        height

        +
        protected int height
        +
        height of the surface to draw to
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Renderer

        +
        public Renderer(Track track,
        +                android.view.SurfaceHolder holder)
        +
        Constuctor for a Renderer.
        +
        +
        Parameters:
        +
        track - the track to render
        +
        holder - the holder of the surface to draw to +
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setSize

        +
        public void setSize(int width,
        +                    int height)
        +
        Updates the dimension information of the + renderer. +
        +
        +
        Parameters:
        +
        width - the width of the SurfaceView
        +
        height - the height of the SurfaceView
        +
        +
      • +
      + + + +
        +
      • +

        setTrack

        +
        public void setTrack(Track track)
        +
        Updates the track of the Surface.
        +
        +
        Parameters:
        +
        track - the new track to render
        +
        +
      • +
      + + + +
        +
      • +

        getColor

        +
        protected int getColor(float curVelocity,
        +                       float maxVelocity)
        +
        Utility function which calculates a color from + the relation between the current speed of a + vehicle and it's maximum speed (from red over yellow to green). +
        +
        +
        Parameters:
        +
        curVelocity - current velocity of the vehicle +
        +
        maxVelocity - maximum velocity of the vehilce +
        +
        Returns:
        +
        color encoded as Android color integer
        +
        +
      • +
      + + + +
        +
      • +

        draw

        +
        protected void draw()
        +
        Draws the current state of the track history to + the Surface. +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/de/hems/trafficsim/TimeRecordView.html b/doc/apidoc/de/hems/trafficsim/TimeRecordView.html new file mode 100644 index 0000000..ff382e8 --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/TimeRecordView.html @@ -0,0 +1,753 @@ + + + + + + TimeRecordView + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.hems.trafficsim
+

Class TimeRecordView

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    android.graphics.drawable.Drawable.Callback, + android.view.accessibility.AccessibilityEventSource, + android.view.KeyEvent.Callback +
    +
    +
    +
    +
    public class TimeRecordView
    +extends android.view.SurfaceView
    +
    A Surface View which servers as a stage for a renderer.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class android.view.View

        + android.view.View.AccessibilityDelegate, + android.view.View.BaseSavedState, + android.view.View.DragShadowBuilder, + android.view.View.MeasureSpec, + android.view.View.OnApplyWindowInsetsListener, + android.view.View.OnAttachStateChangeListener, + android.view.View.OnCapturedPointerListener, + android.view.View.OnClickListener, + android.view.View.OnContextClickListener, + android.view.View.OnCreateContextMenuListener, + android.view.View.OnDragListener, + android.view.View.OnFocusChangeListener, + android.view.View.OnGenericMotionListener, + android.view.View.OnHoverListener, + android.view.View.OnKeyListener, + android.view.View.OnLayoutChangeListener, + android.view.View.OnLongClickListener, + android.view.View.OnScrollChangeListener, + android.view.View.OnSystemUiVisibilityChangeListener, + android.view.View.OnTouchListener, + android.view.View.OnUnhandledKeyEventListener
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      +
        +
      • + + +

        Fields inherited from class android.view.View

        + ACCESSIBILITY_LIVE_REGION_ASSERTIVE, + ACCESSIBILITY_LIVE_REGION_NONE, + ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, + AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, + AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, + AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, + AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, + AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, + AUTOFILL_HINT_CREDIT_CARD_NUMBER, + AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, + AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, + AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, + AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, + AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, + AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, + DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, + DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, + DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, + DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, + DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, + EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, + ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, + ENABLED_FOCUSED_STATE_SET, + ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, + ENABLED_SELECTED_STATE_SET, + ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, + ENABLED_WINDOW_FOCUSED_STATE_SET, + FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, + FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, + FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, + FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, + FOCUSED_SELECTED_STATE_SET, + FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, + FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, + IMPORTANT_FOR_ACCESSIBILITY_AUTO, + IMPORTANT_FOR_ACCESSIBILITY_NO, + IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, + IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, + IMPORTANT_FOR_AUTOFILL_NO, + IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, + IMPORTANT_FOR_AUTOFILL_YES, + IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, + IMPORTANT_FOR_CONTENT_CAPTURE_AUTO, + IMPORTANT_FOR_CONTENT_CAPTURE_NO, + IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS, + IMPORTANT_FOR_CONTENT_CAPTURE_YES, + IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS, + INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, + LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, + LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, + LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, + MEASURED_SIZE_MASK, MEASURED_STATE_MASK, + MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, + OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, + OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, + PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, + PRESSED_ENABLED_FOCUSED_STATE_SET, + PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, + PRESSED_ENABLED_SELECTED_STATE_SET, + PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, + PRESSED_ENABLED_STATE_SET, + PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, + PRESSED_FOCUSED_SELECTED_STATE_SET, + PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, + PRESSED_FOCUSED_STATE_SET, + PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, + PRESSED_SELECTED_STATE_SET, + PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, + PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, + ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, + SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, + SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, + SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, + SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, + SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, + SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, + SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, + SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, + SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, + STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, + SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, + SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, + SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, + SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, + SYSTEM_UI_FLAG_LAYOUT_STABLE, + SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, + SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, + SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, + TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, + TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, + TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, + TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, + TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, + TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, + TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, + TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, + VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors  +
      Constructor and Description
      TimeRecordView(android.content.Context context, + Track track)  +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voidonSizeChanged(int w, + int h, + int oldw, + int oldh) +
      Updates the size information of the + SurfaceView, used by the Android SDK. +
      +
      +
        +
      • + + +

        Methods inherited from class android.view.SurfaceView

        + dispatchDraw, draw, gatherTransparentRegion, getHolder, + getHostToken, getImportantForAccessibility, getSurfaceControl, + onAttachedToWindow, onDetachedFromWindow, onMeasure, + onWindowVisibilityChanged, setAlpha, setChildSurfacePackage, + setClipBounds, setSecure, setVisibility, setZOrderMediaOverlay, + setZOrderOnTop
      • +
      +
        +
      • + + +

        Methods inherited from class android.view.View

        + addChildrenForAccessibility, + addExtraDataToAccessibilityNodeInfo, addFocusables, + addFocusables, addKeyboardNavigationClusters, + addOnAttachStateChangeListener, addOnLayoutChangeListener, + addOnUnhandledKeyEventListener, addTouchables, animate, + announceForAccessibility, autofill, autofill, awakenScrollBars, + awakenScrollBars, awakenScrollBars, bringToFront, + buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, + cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, + canResolveLayoutDirection, canResolveTextAlignment, + canResolveTextDirection, canScrollHorizontally, + canScrollVertically, checkInputConnectionProxy, clearAnimation, + clearFocus, combineMeasuredStates, + computeHorizontalScrollExtent, computeHorizontalScrollOffset, + computeHorizontalScrollRange, computeScroll, + computeSystemWindowInsets, computeVerticalScrollExtent, + computeVerticalScrollOffset, computeVerticalScrollRange, + createAccessibilityNodeInfo, createContextMenu, + destroyDrawingCache, dispatchApplyWindowInsets, + dispatchCapturedPointerEvent, dispatchConfigurationChanged, + dispatchDisplayHint, dispatchDragEvent, + dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, + dispatchGenericFocusedEvent, dispatchGenericMotionEvent, + dispatchGenericPointerEvent, dispatchHoverEvent, + dispatchKeyEvent, dispatchKeyEventPreIme, + dispatchKeyShortcutEvent, dispatchNestedFling, + dispatchNestedPreFling, + dispatchNestedPrePerformAccessibilityAction, + dispatchNestedPreScroll, dispatchNestedScroll, + dispatchPointerCaptureChanged, + dispatchPopulateAccessibilityEvent, + dispatchProvideAutofillStructure, dispatchProvideStructure, + dispatchRestoreInstanceState, dispatchSaveInstanceState, + dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, + dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, + dispatchTouchEvent, dispatchTrackballEvent, + dispatchUnhandledMove, dispatchVisibilityChanged, + dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, + dispatchWindowInsetsAnimationPrepare, + dispatchWindowInsetsAnimationProgress, + dispatchWindowInsetsAnimationStart, + dispatchWindowSystemUiVisiblityChanged, + dispatchWindowVisibilityChanged, drawableHotspotChanged, + drawableStateChanged, findFocus, findViewById, + findViewsWithText, findViewWithTag, fitSystemWindows, + focusSearch, forceHasOverlappingRendering, forceLayout, + generateViewId, getAccessibilityClassName, + getAccessibilityDelegate, getAccessibilityLiveRegion, + getAccessibilityNodeProvider, getAccessibilityPaneTitle, + getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, + getAlpha, getAnimation, getAnimationMatrix, + getApplicationWindowToken, getAttributeResolutionStack, + getAttributeSourceResourceMap, getAutofillHints, getAutofillId, + getAutofillType, getAutofillValue, getBackground, + getBackgroundTintBlendMode, getBackgroundTintList, + getBackgroundTintMode, getBaseline, getBottom, + getBottomFadingEdgeStrength, getBottomPaddingOffset, + getCameraDistance, getClipBounds, getClipBounds, + getClipToOutline, getContentCaptureSession, + getContentDescription, getContext, getContextMenuInfo, + getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, + getDrawableState, getDrawingCache, getDrawingCache, + getDrawingCacheBackgroundColor, getDrawingCacheQuality, + getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, + getFilterTouchesWhenObscured, getFitsSystemWindows, + getFocusable, getFocusables, getFocusedRect, getForeground, + getForegroundGravity, getForegroundTintBlendMode, + getForegroundTintList, getForegroundTintMode, + getGlobalVisibleRect, getGlobalVisibleRect, getHandler, + getHasOverlappingRendering, getHeight, getHitRect, + getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, + getHorizontalScrollbarThumbDrawable, + getHorizontalScrollbarTrackDrawable, getId, + getImportantForAutofill, getImportantForContentCapture, + getKeepScreenOn, getKeyDispatcherState, getLabelFor, + getLayerType, getLayoutDirection, getLayoutParams, getLeft, + getLeftFadingEdgeStrength, getLeftPaddingOffset, + getLocalVisibleRect, getLocationInSurface, getLocationInWindow, + getLocationOnScreen, getMatrix, getMeasuredHeight, + getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, + getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, + getNextClusterForwardId, getNextFocusDownId, + getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, + getNextFocusUpId, getOnFocusChangeListener, + getOutlineAmbientShadowColor, getOutlineProvider, + getOutlineSpotShadowColor, getOverlay, getOverScrollMode, + getPaddingBottom, getPaddingEnd, getPaddingLeft, + getPaddingRight, getPaddingStart, getPaddingTop, getParent, + getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, + getResources, getRevealOnFocusHint, getRight, + getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, + getRootWindowInsets, getRotation, getRotationX, getRotationY, + getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, + getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, + getScrollIndicators, getScrollX, getScrollY, getSolidColor, + getSourceLayoutResId, getStateDescription, getStateListAnimator, + getSuggestedMinimumHeight, getSuggestedMinimumWidth, + getSystemGestureExclusionRects, getSystemUiVisibility, getTag, + getTag, getTextAlignment, getTextDirection, getTooltipText, + getTop, getTopFadingEdgeStrength, getTopPaddingOffset, + getTouchables, getTouchDelegate, getTransitionAlpha, + getTransitionName, getTranslationX, getTranslationY, + getTranslationZ, getUniqueDrawingId, + getVerticalFadingEdgeLength, getVerticalScrollbarPosition, + getVerticalScrollbarThumbDrawable, + getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, + getViewTreeObserver, getVisibility, getWidth, + getWindowAttachCount, getWindowId, getWindowInsetsController, + getWindowSystemUiVisibility, getWindowToken, + getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, + getZ, hasExplicitFocusable, hasFocus, hasFocusable, + hasNestedScrollingParent, hasOnClickListeners, + hasOnLongClickListeners, hasOverlappingRendering, + hasPointerCapture, hasTransientState, hasWindowFocus, inflate, + invalidate, invalidate, invalidate, invalidateDrawable, + invalidateOutline, isAccessibilityFocused, + isAccessibilityHeading, isActivated, isAttachedToWindow, + isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, + isDuplicateParentStateEnabled, isEnabled, isFocusable, + isFocusableInTouchMode, isFocused, isFocusedByDefault, + isForceDarkAllowed, isHapticFeedbackEnabled, + isHardwareAccelerated, isHorizontalFadingEdgeEnabled, + isHorizontalScrollBarEnabled, isHovered, + isImportantForAccessibility, isImportantForAutofill, + isImportantForContentCapture, isInEditMode, isInLayout, + isInTouchMode, isKeyboardNavigationCluster, isLaidOut, + isLayoutDirectionResolved, isLayoutRequested, isLongClickable, + isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, + isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, + isSaveFromParentEnabled, isScreenReaderFocusable, + isScrollbarFadingEnabled, isScrollContainer, isSelected, + isShowingLayoutBounds, isShown, isSoundEffectsEnabled, + isTemporarilyDetached, isTextAlignmentResolved, + isTextDirectionResolved, isVerticalFadingEdgeEnabled, + isVerticalScrollBarEnabled, isVisibleToUserForAutofill, + jumpDrawablesToCurrentState, keyboardNavigationClusterSearch, + layout, measure, mergeDrawableStates, offsetLeftAndRight, + offsetTopAndBottom, onAnimationEnd, onAnimationStart, + onApplyWindowInsets, onCancelPendingInputEvents, + onCapturedPointerEvent, onCheckIsTextEditor, + onConfigurationChanged, onCreateContextMenu, + onCreateDrawableState, onCreateInputConnection, onDisplayHint, + onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, + onFilterTouchEventForSecurity, onFinishInflate, + onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, + onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, + onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, + onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onLayout, + onOverScrolled, onPointerCaptureChange, + onPopulateAccessibilityEvent, onProvideAutofillStructure, + onProvideAutofillVirtualStructure, + onProvideContentCaptureStructure, onProvideStructure, + onProvideVirtualStructure, onResolvePointerIcon, + onRestoreInstanceState, onRtlPropertiesChanged, + onSaveInstanceState, onScreenStateChanged, onScrollChanged, + onSetAlpha, onStartTemporaryDetach, onTouchEvent, + onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, + onWindowFocusChanged, onWindowSystemUiVisibilityChanged, + overScrollBy, performAccessibilityAction, performClick, + performContextClick, performContextClick, performHapticFeedback, + performHapticFeedback, performLongClick, performLongClick, + playSoundEffect, post, postDelayed, postInvalidate, + postInvalidate, postInvalidateDelayed, postInvalidateDelayed, + postInvalidateOnAnimation, postInvalidateOnAnimation, + postOnAnimation, postOnAnimationDelayed, refreshDrawableState, + releasePointerCapture, removeCallbacks, + removeOnAttachStateChangeListener, removeOnLayoutChangeListener, + removeOnUnhandledKeyEventListener, requestApplyInsets, + requestFitSystemWindows, requestFocus, requestFocus, + requestFocus, requestFocusFromTouch, requestLayout, + requestPointerCapture, requestRectangleOnScreen, + requestRectangleOnScreen, requestUnbufferedDispatch, + requestUnbufferedDispatch, requireViewById, resetPivot, + resolveSize, resolveSizeAndState, restoreDefaultFocus, + restoreHierarchyState, saveAttributeDataForStyleable, + saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, + sendAccessibilityEvent, sendAccessibilityEventUnchecked, + setAccessibilityDelegate, setAccessibilityHeading, + setAccessibilityLiveRegion, setAccessibilityPaneTitle, + setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, + setActivated, setAnimation, setAnimationMatrix, + setAutofillHints, setAutofillId, setBackground, + setBackgroundColor, setBackgroundDrawable, + setBackgroundResource, setBackgroundTintBlendMode, + setBackgroundTintList, setBackgroundTintMode, setBottom, + setCameraDistance, setClickable, setClipToOutline, + setContentCaptureSession, setContentDescription, + setContextClickable, setDefaultFocusHighlightEnabled, + setDrawingCacheBackgroundColor, setDrawingCacheEnabled, + setDrawingCacheQuality, setDuplicateParentStateEnabled, + setElevation, setEnabled, setFadingEdgeLength, + setFilterTouchesWhenObscured, setFitsSystemWindows, + setFocusable, setFocusable, setFocusableInTouchMode, + setFocusedByDefault, setForceDarkAllowed, setForeground, + setForegroundGravity, setForegroundTintBlendMode, + setForegroundTintList, setForegroundTintMode, + setHapticFeedbackEnabled, setHasTransientState, + setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, + setHorizontalScrollbarThumbDrawable, + setHorizontalScrollbarTrackDrawable, setHovered, setId, + setImportantForAccessibility, setImportantForAutofill, + setImportantForContentCapture, setKeepScreenOn, + setKeyboardNavigationCluster, setLabelFor, setLayerPaint, + setLayerType, setLayoutDirection, setLayoutParams, setLeft, + setLeftTopRightBottom, setLongClickable, setMeasuredDimension, + setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, + setNextClusterForwardId, setNextFocusDownId, + setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, + setNextFocusUpId, setOnApplyWindowInsetsListener, + setOnCapturedPointerListener, setOnClickListener, + setOnContextClickListener, setOnCreateContextMenuListener, + setOnDragListener, setOnFocusChangeListener, + setOnGenericMotionListener, setOnHoverListener, + setOnKeyListener, setOnLongClickListener, + setOnScrollChangeListener, + setOnSystemUiVisibilityChangeListener, setOnTouchListener, + setOutlineAmbientShadowColor, setOutlineProvider, + setOutlineSpotShadowColor, setOverScrollMode, setPadding, + setPaddingRelative, setPivotX, setPivotY, setPointerIcon, + setPressed, setRevealOnFocusHint, setRight, setRotation, + setRotationX, setRotationY, setSaveEnabled, + setSaveFromParentEnabled, setScaleX, setScaleY, + setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, + setScrollBarFadeDuration, setScrollbarFadingEnabled, + setScrollBarSize, setScrollBarStyle, setScrollContainer, + setScrollIndicators, setScrollIndicators, setScrollX, + setScrollY, setSelected, setSoundEffectsEnabled, + setStateDescription, setStateListAnimator, + setSystemGestureExclusionRects, setSystemUiVisibility, setTag, + setTag, setTextAlignment, setTextDirection, setTooltipText, + setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, + setTransitionVisibility, setTranslationX, setTranslationY, + setTranslationZ, setVerticalFadingEdgeEnabled, + setVerticalScrollBarEnabled, setVerticalScrollbarPosition, + setVerticalScrollbarThumbDrawable, + setVerticalScrollbarTrackDrawable, setWillNotCacheDrawing, + setWillNotDraw, setWindowInsetsAnimationCallback, setX, setY, + setZ, showContextMenu, showContextMenu, startActionMode, + startActionMode, startAnimation, startDrag, startDragAndDrop, + startNestedScroll, stopNestedScroll, toString, + transformMatrixToGlobal, transformMatrixToLocal, + unscheduleDrawable, unscheduleDrawable, updateDragShadow, + verifyDrawable, willNotCacheDrawing, willNotDraw
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        + clone, equals, finalize, getClass, hashCode, notify, + notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TimeRecordView

        +
        public TimeRecordView(android.content.Context context,
        +                      Track track)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onSizeChanged

        +
        protected void onSizeChanged(int w,
        +                             int h,
        +                             int oldw,
        +                             int oldh)
        +
        Updates the size information of the SurfaceView, + used by the Android SDK. +
        +
        +
        Overrides:
        +
        onSizeChanged in class android.view.View +
        +
        Parameters:
        +
        w - new width
        +
        h - new height
        +
        oldw - old width
        +
        oldh - old height
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/de/hems/trafficsim/Track.html b/doc/apidoc/de/hems/trafficsim/Track.html new file mode 100644 index 0000000..cc90cbc --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/Track.html @@ -0,0 +1,1011 @@ + + + + + + Track + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.hems.trafficsim
+

Class Track

+
+
+ +
+
    +
  • +
    +
    +
    public class Track
    +extends java.util.Observable
    +
    Main model class of TrafficSim. Represents a round course + containing vehicles. +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected floatbrakeProb +
      currently configured brake probability for + all vehicles +
      +
      protected floatdelayedAvg +
      average over all velocities in the + simulation, ignoring the first ten steps +
      +
      protected inthistoryLength +
      length of the history kept
      +
      protected floatlastAvg +
      average over all velocities in the last + step +
      +
      protected + java.util.concurrent.SemaphorelistSemaphore +
      semaphore protecting the vtrlist
      +
      protected floatmaxVelocity +
      currently configured max velocity for all + vehicles +
      +
      protected floatoverallAvg +
      average over all velocities in the + simulation +
      +
      protected longsteps +
      counter for executed simulation steps
      +
      protected floatsumAvgMemory +
      sum of all vehicle speeds during the + simulation, used for average calculation +
      +
      protected floatsumDelAvgMemory +
      sum of all vehicle speeds during the + simulation ignoring the first ten steps, + used for average calculation +
      +
      protected floattrackLength +
      length of the track
      +
      protected java.util.List<Vehicle> + vehicles +
      list a vehicles on the track
      +
      protected java.util.List<java.util.List<VehicleTimeRecord>> + vtrList +
      list of resulting time records of the + simulation +
      +
      protected intwaitTime +
      current configured wait time between two + simulation steps +
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors  +
      Constructor and Description
      Track(int numberVehicles, + float trackLength, + float brakeProb, + float maxVelocity, + int waitTime, + int historyLength) +
      Constructor for a new Track.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      floatavg_step(int step) +
      Returns the average velocity of the given + simulation step. +
      +
      protected java.util.List<Vehicle> + createVehiclesList(int numberVehicles) +
      Utility function to add vehicles to the + Track. +
      +
      floatgetDelayedAvg() +
      Getter for delayedAvg
      +
      intgetHistoryLength() +
      Getter for historyLength
      +
      floatgetLastAvg() +
      Getter for lastAvg
      +
      java.util.concurrent.Semaphore + getListSemaphore() +
      Getter for listSemaphore
      +
      floatgetOverallAvg() +
      Getter for overallAvg
      +
      longgetSteps() +
      Getter for steps
      +
      floatgetTrackLength() +
      Getter for trackLength
      +
      java.util.List<Vehicle> + getVehicles() +
      Getter for vehicles
      +
      java.util.List<java.util.List<VehicleTimeRecord>> + getVtrList() +
      Getter for vtrList
      +
      voidsetBrakeProb(float brakeProb) +
      Update the brake probability of all + vehicles. +
      +
      voidsetMaxVelocity(float maxVelocity) +
      Update the maximum velocity of all + vehicles. +
      +
      voidsetWaitTime(int waitTime) +
      Update the wait time of the simulation.
      +
      voidtimeElapse() +
      Calculates on simulation step ahead and then + waits for the configured wait time. +
      +
      protected voidupdate_avg() +
      Utility function which updates the averages + values with the results from the last simulation + step. +
      +
      +
        +
      • + + +

        Methods inherited from class java.util.Observable

        + addObserver, clearChanged, countObservers, deleteObserver, + deleteObservers, hasChanged, notifyObservers, notifyObservers, + setChanged
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        + clone, equals, finalize, getClass, hashCode, notify, + notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        vehicles

        +
        protected java.util.List<Vehicle> vehicles
        +
        list a vehicles on the track
        +
      • +
      + + + +
        +
      • +

        vtrList

        +
        protected java.util.List<java.util.List<VehicleTimeRecord>> vtrList
        +
        list of resulting time records of the + simulation +
        +
      • +
      + + + +
        +
      • +

        trackLength

        +
        protected float trackLength
        +
        length of the track
        +
      • +
      + + + +
        +
      • +

        sumAvgMemory

        +
        protected float sumAvgMemory
        +
        sum of all vehicle speeds during the simulation, + used for average calculation +
        +
      • +
      + + + +
        +
      • +

        sumDelAvgMemory

        +
        protected float sumDelAvgMemory
        +
        sum of all vehicle speeds during the simulation + ignoring the first ten steps, + used for average calculation +
        +
      • +
      + + + +
        +
      • +

        historyLength

        +
        protected int historyLength
        +
        length of the history kept
        +
      • +
      + + + +
        +
      • +

        overallAvg

        +
        protected float overallAvg
        +
        average over all velocities in the simulation +
        +
      • +
      + + + +
        +
      • +

        delayedAvg

        +
        protected float delayedAvg
        +
        average over all velocities in the simulation, + ignoring the first ten steps +
        +
      • +
      + + + +
        +
      • +

        lastAvg

        +
        protected float lastAvg
        +
        average over all velocities in the last step +
        +
      • +
      + + + +
        +
      • +

        waitTime

        +
        protected int waitTime
        +
        current configured wait time between two + simulation steps +
        +
      • +
      + + + +
        +
      • +

        maxVelocity

        +
        protected float maxVelocity
        +
        currently configured max velocity for all + vehicles +
        +
      • +
      + + + +
        +
      • +

        brakeProb

        +
        protected float brakeProb
        +
        currently configured brake probability for all + vehicles +
        +
      • +
      + + + +
        +
      • +

        steps

        +
        protected long steps
        +
        counter for executed simulation steps
        +
      • +
      + + + +
        +
      • +

        listSemaphore

        +
        protected java.util.concurrent.Semaphore listSemaphore
        +
        semaphore protecting the vtrlist
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Track

        +
        public Track(int numberVehicles,
        +             float trackLength,
        +             float brakeProb,
        +             float maxVelocity,
        +             int waitTime,
        +             int historyLength)
        +
        Constructor for a new Track.
        +
        +
        Parameters:
        +
        numberVehicles - number of vehicles on the + Track +
        +
        trackLength - length of the new Track
        +
        brakeProb - probability of a vehicle to + suddenly brake without reason +
        +
        maxVelocity - maxmimum velocity of the vehicles +
        +
        waitTime - time between two simulation steps to + slow down the simulation artificially +
        +
        historyLength - length of the history to keep +
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getVtrList

        +
        public java.util.List<java.util.List<VehicleTimeRecord>> getVtrList()
        +
        Getter for vtrList
        +
        +
        Returns:
        +
        vtrList
        +
        +
      • +
      + + + +
        +
      • +

        getOverallAvg

        +
        public float getOverallAvg()
        +
        Getter for overallAvg
        +
        +
        Returns:
        +
        overallAvg
        +
        +
      • +
      + + + +
        +
      • +

        getLastAvg

        +
        public float getLastAvg()
        +
        Getter for lastAvg
        +
        +
        Returns:
        +
        lastAvg
        +
        +
      • +
      + + + +
        +
      • +

        getDelayedAvg

        +
        public float getDelayedAvg()
        +
        Getter for delayedAvg
        +
        +
        Returns:
        +
        delayedAvg
        +
        +
      • +
      + + + +
        +
      • +

        getVehicles

        +
        public java.util.List<Vehicle> getVehicles()
        +
        Getter for vehicles
        +
        +
        Returns:
        +
        vehicles
        +
        +
      • +
      + + + +
        +
      • +

        getTrackLength

        +
        public float getTrackLength()
        +
        Getter for trackLength
        +
        +
        Returns:
        +
        trackLength
        +
        +
      • +
      + + + +
        +
      • +

        getSteps

        +
        public long getSteps()
        +
        Getter for steps
        +
        +
        Returns:
        +
        steps
        +
        +
      • +
      + + + +
        +
      • +

        getListSemaphore

        +
        public java.util.concurrent.Semaphore getListSemaphore()
        +
        Getter for listSemaphore
        +
        +
        Returns:
        +
        listSemaphore
        +
        +
      • +
      + + + +
        +
      • +

        getHistoryLength

        +
        public int getHistoryLength()
        +
        Getter for historyLength
        +
        +
        Returns:
        +
        historyLength
        +
        +
      • +
      + + + +
        +
      • +

        createVehiclesList

        +
        protected java.util.List<Vehicle> createVehiclesList(int numberVehicles)
        +
        Utility function to add vehicles to the Track. +
        +
        +
        Parameters:
        +
        numberVehicles - number of vehicles to add
        +
        Returns:
        +
        filled list with vehicles
        +
        +
      • +
      + + + +
        +
      • +

        setWaitTime

        +
        public void setWaitTime(int waitTime)
        +
        Update the wait time of the simulation.
        +
        +
        Parameters:
        +
        waitTime - new wait time in ms
        +
        +
      • +
      + + + +
        +
      • +

        setBrakeProb

        +
        public void setBrakeProb(float brakeProb)
        +
        Update the brake probability of all vehicles. +
        +
        +
        Parameters:
        +
        brakeProb - new brake probability
        +
        +
      • +
      + + + +
        +
      • +

        setMaxVelocity

        +
        public void setMaxVelocity(float maxVelocity)
        +
        Update the maximum velocity of all vehicles. +
        +
        +
        Parameters:
        +
        maxVelocity - new maximum velocity
        +
        +
      • +
      + + + +
        +
      • +

        timeElapse

        +
        public void timeElapse()
        +
        Calculates on simulation step ahead and then + waits for the configured wait time. +
        +
      • +
      + + + +
        +
      • +

        avg_step

        +
        public float avg_step(int step)
        +
        Returns the average velocity of the given + simulation step. +
        +
        +
        Parameters:
        +
        step - index of the step in the history list +
        +
        Returns:
        +
        average velocity
        +
        +
      • +
      + + + +
        +
      • +

        update_avg

        +
        protected void update_avg()
        +
        Utility function which updates the averages + values with the results from the last simulation + step. +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/de/hems/trafficsim/Vehicle.html b/doc/apidoc/de/hems/trafficsim/Vehicle.html new file mode 100644 index 0000000..92c0ce4 --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/Vehicle.html @@ -0,0 +1,605 @@ + + + + + + Vehicle + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.hems.trafficsim
+

Class Vehicle

+
+
+ +
+
    +
  • +
    +
    +
    public class Vehicle
    +extends java.lang.Object
    +
    Model class which represents a vehicle in the simulation.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected floatbrakeProb +
      probability of the vehicle to brake without + reason +
      +
      protected floatcurVelocity +
      current velocity of the vehicle
      +
      protected intid +
      a number to index the vehicle
      +
      protected floatmaxVelocity +
      maximum velocity of the vehicle
      +
      protected floatposition +
      current position of the vehicle on the + track +
      +
      protected floattrackLength +
      length of the track the vehicle is placed + on +
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors  +
      Constructor and Description
      Vehicle(int id, + int position, + float maxVelocity, + float brakeProb, + float trackLength) +
      Constructs a new vehicle.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      floatgetCurVelocity() +
      Getter for curVelocity
      +
      floatgetMaxVelocity() +
      Getter for maxVelocity
      +
      floatgetPosition() +
      Getter for position
      +
      voidsetBrakeProb(float brakeProb) +
      Setter for brakeProb
      +
      voidsetMaxVelocity(float maxVelocity) +
      Setter for maxVelocity
      +
      voidtimeElapse() +
      Updates the position of the vehicle according + to it's previously calculated speed. +
      +
      voidupdateVelocity(float distanceForerunner) +
      Calculates the new velocity of the vehicle + based on the following rules: + + Increase by one if the vehicle is slower than it's maximum + speed + Random brake by one + Break if the distance to the forerunner is less than it's + speed +
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        + clone, equals, finalize, getClass, hashCode, notify, + notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        id

        +
        protected int id
        +
        a number to index the vehicle
        +
      • +
      + + + +
        +
      • +

        position

        +
        protected float position
        +
        current position of the vehicle on the track +
        +
      • +
      + + + +
        +
      • +

        curVelocity

        +
        protected float curVelocity
        +
        current velocity of the vehicle
        +
      • +
      + + + +
        +
      • +

        maxVelocity

        +
        protected float maxVelocity
        +
        maximum velocity of the vehicle
        +
      • +
      + + + +
        +
      • +

        brakeProb

        +
        protected float brakeProb
        +
        probability of the vehicle to brake without + reason +
        +
      • +
      + + + +
        +
      • +

        trackLength

        +
        protected float trackLength
        +
        length of the track the vehicle is placed on +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Vehicle

        +
        public Vehicle(int id,
        +               int position,
        +               float maxVelocity,
        +               float brakeProb,
        +               float trackLength)
        +
        Constructs a new vehicle.
        +
        +
        Parameters:
        +
        id - a number to index the vehicle
        +
        position - current position of the vehicle on + the track +
        +
        maxVelocity - maximum velocity of the vehicle +
        +
        brakeProb - probability of the vehicle to brake + without reason +
        +
        trackLength - length of the track the vehicle + is placed on +
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPosition

        +
        public float getPosition()
        +
        Getter for position
        +
        +
        Returns:
        +
        position
        +
        +
      • +
      + + + +
        +
      • +

        getCurVelocity

        +
        public float getCurVelocity()
        +
        Getter for curVelocity
        +
        +
        Returns:
        +
        curVelocity
        +
        +
      • +
      + + + +
        +
      • +

        getMaxVelocity

        +
        public float getMaxVelocity()
        +
        Getter for maxVelocity
        +
        +
        Returns:
        +
        maxVelocity
        +
        +
      • +
      + + + +
        +
      • +

        setBrakeProb

        +
        public void setBrakeProb(float brakeProb)
        +
        Setter for brakeProb
        +
      • +
      + + + +
        +
      • +

        setMaxVelocity

        +
        public void setMaxVelocity(float maxVelocity)
        +
        Setter for maxVelocity
        +
      • +
      + + + +
        +
      • +

        updateVelocity

        +
        public void updateVelocity(float distanceForerunner)
        +
        Calculates the new velocity of the vehicle based + on the following rules: +
          +
        1. Increase by one if the vehicle is slower than it's + maximum speed +
        2. +
        3. Random brake by one
        4. +
        5. Break if the distance to the forerunner is less than + it's speed +
        6. +
        +
        +
        +
        Parameters:
        +
        distanceForerunner - distance to the forerunner + of the vehicle +
        +
        +
      • +
      + + + +
        +
      • +

        timeElapse

        +
        public void timeElapse()
        +
        Updates the position of the vehicle according to + it's previously calculated speed. +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/de/hems/trafficsim/VehicleTimeRecord.html b/doc/apidoc/de/hems/trafficsim/VehicleTimeRecord.html new file mode 100644 index 0000000..acc8e37 --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/VehicleTimeRecord.html @@ -0,0 +1,452 @@ + + + + + + VehicleTimeRecord + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.hems.trafficsim
+

Class VehicleTimeRecord

+
+
+ +
+
    +
  • +
    +
    +
    public class VehicleTimeRecord
    +extends java.lang.Object
    +
    Model class which keeps the previous simulation data for + analysis. +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected intid +
      the id of the vehicle it belongs to
      +
      protected floatmaxVelocity +
      the maximum velocity of the vehicle
      +
      protected floatposition +
      the position of the vehicle after the last + simulation step +
      +
      protected floatvelocity +
      the velocity of the vehicle during the last + simulation step +
      +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors  +
      Constructor and Description
      VehicleTimeRecord(int id, + float position, + float velocity, + float maxVelocity) +
      Construct a new VehicleTimeRecord.
      +
      +
    • +
    + + +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        id

        +
        protected int id
        +
        the id of the vehicle it belongs to
        +
      • +
      + + + +
        +
      • +

        position

        +
        protected float position
        +
        the position of the vehicle after the last + simulation step +
        +
      • +
      + + + +
        +
      • +

        velocity

        +
        protected float velocity
        +
        the velocity of the vehicle during the last + simulation step +
        +
      • +
      + + + +
        +
      • +

        maxVelocity

        +
        protected float maxVelocity
        +
        the maximum velocity of the vehicle
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VehicleTimeRecord

        +
        public VehicleTimeRecord(int id,
        +                         float position,
        +                         float velocity,
        +                         float maxVelocity)
        +
        Construct a new VehicleTimeRecord.
        +
        +
        Parameters:
        +
        id - the id of the vehicle it belongs to
        +
        position - the position of the vehicle after + the last simulation step +
        +
        velocity - the velocity of the vehicle during + the last simulation step +
        +
        maxVelocity - the maximum velocity of the + vehicle +
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getMaxVelocity

        +
        public float getMaxVelocity()
        +
      • +
      + + + +
        +
      • +

        getPosition

        +
        public float getPosition()
        +
      • +
      + + + +
        +
      • +

        getVelocity

        +
        public float getVelocity()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/de/hems/trafficsim/Worker.html b/doc/apidoc/de/hems/trafficsim/Worker.html new file mode 100644 index 0000000..1cd4777 --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/Worker.html @@ -0,0 +1,568 @@ + + + + + + Worker + + + + + + + + +
+ + + + + + + +
+ + + +
+
de.hems.trafficsim
+

Class Worker

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class Worker
    +extends java.lang.Thread
    +
    Calculation thread, which runs the simulation itself and also + updates the view with a set rate. +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class java.lang.Thread

        + java.lang.Thread.State, + java.lang.Thread.UncaughtExceptionHandler
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected intframeskip +
      Amount of simulation steps between two frames + in the view. +
      +
      protected MainActivity + gui +
      the MainActivity of the gui
      +
      protected Rendererrenderer +
      the Renderer drawing the Track
      +
      protected booleanstop +
      Stop flag, indicating that the worker shall + stop +
      +
      protected Tracktrack +
      the track to simulate
      +
      +
        +
      • + + +

        Fields inherited from class java.lang.Thread

        + MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors  +
      Constructor and Description
      Worker(Track track, + MainActivity gui, + Renderer renderer, + int frameskip) +
      Construct a new worker.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidrun() +
      Method which is automatically executed when + the thread is started. +
      +
      voidsetFrameskip(int frames) +
      Updates the amount of simulation steps + between to view frames. +
      +
      voidsetStop(boolean stop) +
      Sets a flag that causes the worker to stop. +
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Thread

        + activeCount, checkAccess, clone, countStackFrames, + currentThread, destroy, dumpStack, enumerate, getAllStackTraces, + getContextClassLoader, getDefaultUncaughtExceptionHandler, + getId, getName, getPriority, getStackTrace, getState, + getThreadGroup, getUncaughtExceptionHandler, holdsLock, + interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, + join, join, resume, setContextClassLoader, setDaemon, + setDefaultUncaughtExceptionHandler, setName, setPriority, + setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, + suspend, toString, yield
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        + equals, finalize, getClass, hashCode, notify, notifyAll, wait, + wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        track

        +
        protected Track track
        +
        the track to simulate
        +
      • +
      + + + +
        +
      • +

        stop

        +
        protected boolean stop
        +
        Stop flag, indicating that the worker shall + stop +
        +
      • +
      + + + +
        +
      • +

        gui

        +
        protected MainActivity gui
        +
        the MainActivity of the gui
        +
      • +
      + + + +
        +
      • +

        renderer

        +
        protected Renderer renderer
        +
        the Renderer drawing the Track
        +
      • +
      + + + +
        +
      • +

        frameskip

        +
        protected int frameskip
        +
        Amount of simulation steps between two frames in + the view. Zero means + that every simulation step is drawn. +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Worker

        +
        public Worker(Track track,
        +              MainActivity gui,
        +              Renderer renderer,
        +              int frameskip)
        +
        Construct a new worker.
        +
        +
        Parameters:
        +
        track - the track to simulate
        +
        gui - the MainActivity of the gui
        +
        renderer - the Renderer drawing the Track
        +
        frameskip - Amount of simulation steps between + two frames in the view. Zero means + that every simulation step is drawn +
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setStop

        +
        public void setStop(boolean stop)
        +
        Sets a flag that causes the worker to stop.
        +
        +
        Parameters:
        +
        stop - flag whether the thread shall stop
        +
        +
      • +
      + + + +
        +
      • +

        setFrameskip

        +
        public void setFrameskip(int frames)
        +
        Updates the amount of simulation steps between to + view frames. +
        +
        +
        Parameters:
        +
        frames - amount of steps
        +
        +
      • +
      + + + +
        +
      • +

        run

        +
        public void run()
        +
        Method which is automatically executed when the + thread is started. It alternates between + updating the simulation and drawing a new frame in the view. +
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable +
        +
        Overrides:
        +
        run in + class java.lang.Thread
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/de/hems/trafficsim/package-frame.html b/doc/apidoc/de/hems/trafficsim/package-frame.html new file mode 100644 index 0000000..ca03e90 --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/package-frame.html @@ -0,0 +1,35 @@ + + + + + + de.hems.trafficsim + + + + + +

de.hems.trafficsim +

+
+

Classes

+ +
+ + diff --git a/doc/apidoc/de/hems/trafficsim/package-summary.html b/doc/apidoc/de/hems/trafficsim/package-summary.html new file mode 100644 index 0000000..0f6516e --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/package-summary.html @@ -0,0 +1,206 @@ + + + + + + de.hems.trafficsim + + + + + + + + +
+ + + + + + + +
+ + +
+

Package de.hems.trafficsim

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/de/hems/trafficsim/package-tree.html b/doc/apidoc/de/hems/trafficsim/package-tree.html new file mode 100644 index 0000000..bc5eb47 --- /dev/null +++ b/doc/apidoc/de/hems/trafficsim/package-tree.html @@ -0,0 +1,241 @@ + + + + + + de.hems.trafficsim Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package de.hems.trafficsim

+
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/deprecated-list.html b/doc/apidoc/deprecated-list.html new file mode 100644 index 0000000..7beca5e --- /dev/null +++ b/doc/apidoc/deprecated-list.html @@ -0,0 +1,126 @@ + + + + + + Deprecated List + + + + + + + + +
+ + + + + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/help-doc.html b/doc/apidoc/help-doc.html new file mode 100644 index 0000000..6ca7c64 --- /dev/null +++ b/doc/apidoc/help-doc.html @@ -0,0 +1,252 @@ + + + + + + API Help + + + + + + + + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages + corresponding to the items in the navigation bar, described as follows. +
+
+
+ + This help file applies to API documentation generated using the standard doclet. +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-1.html b/doc/apidoc/index-files/index-1.html new file mode 100644 index 0000000..a8a20de --- /dev/null +++ b/doc/apidoc/index-files/index-1.html @@ -0,0 +1,152 @@ + + + + + + A-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

A

+
+
avg_step(int) + - Method in class de.hems.trafficsim.Track +
+
+
Returns the average velocity of the given simulation step.
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-10.html b/doc/apidoc/index-files/index-10.html new file mode 100644 index 0000000..de08c11 --- /dev/null +++ b/doc/apidoc/index-files/index-10.html @@ -0,0 +1,182 @@ + + + + + + M-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

M

+
+
MainActivity - Class in de.hems.trafficsim
+
+
Main user interface class, containing all necessary gui elements and + their control flow. +
+
+
MainActivity() + - Constructor for class de.hems.trafficsim.MainActivity
+
 
+
maxVelocity + - Variable in class de.hems.trafficsim.Track +
+
+
currently configured max velocity for all vehicles
+
+
maxVelocity + - Variable in class de.hems.trafficsim.Vehicle +
+
+
maximum velocity of the vehicle
+
+
maxVelocity + - Variable in class de.hems.trafficsim.VehicleTimeRecord
+
+
the maximum velocity of the vehicle
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-11.html b/doc/apidoc/index-files/index-11.html new file mode 100644 index 0000000..23d5063 --- /dev/null +++ b/doc/apidoc/index-files/index-11.html @@ -0,0 +1,226 @@ + + + + + + O-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

O

+
+
onClearButtonClick(View) + - Method in class de.hems.trafficsim.MainActivity +
+
+
Handler function for clicks on the "Stop" button.
+
+
onCreate(Bundle) + - Method in class de.hems.trafficsim.MainActivity +
+
+
Constructor for MainActivity
+
+
onPlayButtonClick(View) + - Method in class de.hems.trafficsim.MainActivity +
+
+
Handler function for clicks on the "Play" button.
+
+
onProgressChanged(SeekBar, int, boolean) + - Method in class de.hems.trafficsim.MainActivity +
+
+
Handler function for changes on the seek bars.
+
+
onSizeChanged(int, int, int, int) + - Method in class de.hems.trafficsim.TimeRecordView +
+
+
Updates the size information of the SurfaceView, used by the Android + SDK. +
+
+
onStartTrackingTouch(SeekBar) + - Method in class de.hems.trafficsim.MainActivity +
+
+
Handler function for beginning touch events on a seek bar.
+
+
onStepButtonClick(View) + - Method in class de.hems.trafficsim.MainActivity +
+
+
Handler function for clicks on the "Step" button.
+
+
onStopButtonClick(View) + - Method in class de.hems.trafficsim.MainActivity +
+
+
Handler function for clicks on the "Stop" button.
+
+
onStopTrackingTouch(SeekBar) + - Method in class de.hems.trafficsim.MainActivity +
+
+
Handler function for ending touch events on a seek bar.
+
+
overallAvg + - Variable in class de.hems.trafficsim.Track +
+
+
average over all velocities in the simulation
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-12.html b/doc/apidoc/index-files/index-12.html new file mode 100644 index 0000000..82f0d42 --- /dev/null +++ b/doc/apidoc/index-files/index-12.html @@ -0,0 +1,182 @@ + + + + + + P-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

P

+
+
paint - Variable in + class de.hems.trafficsim.Renderer
+
+
Paint instance of the renderer
+
+
pixelPerLine + - Variable in class de.hems.trafficsim.Renderer +
+
+
height of a rectangle representing one vehicle
+
+
pixelPerVehicle + - Variable in class de.hems.trafficsim.Renderer +
+
+
width of a rectangle representing one vehicle
+
+
position + - Variable in class de.hems.trafficsim.Vehicle +
+
+
current position of the vehicle on the track
+
+
position - + Variable in class de.hems.trafficsim.VehicleTimeRecord
+
+
the position of the vehicle after the last simulation step
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-13.html b/doc/apidoc/index-files/index-13.html new file mode 100644 index 0000000..4414264 --- /dev/null +++ b/doc/apidoc/index-files/index-13.html @@ -0,0 +1,190 @@ + + + + + + R-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

R

+
+
renderer + - Variable in class de.hems.trafficsim.MainActivity +
+
+
the renderer instance drawing the track history
+
+
Renderer - Class in de.hems.trafficsim
+
+
User interface class rendering the track history on a SurfaceView. +
+
+
Renderer(Track, SurfaceHolder) + - Constructor for class de.hems.trafficsim.Renderer +
+
+
Constuctor for a Renderer.
+
+
renderer + - Variable in class de.hems.trafficsim.Worker +
+
+
the Renderer drawing the Track
+
+
round(float, int) + - Static method in class de.hems.trafficsim.MainActivity
+
+
Utility function to round a float to a given amount of digits.
+
+
run() + - Method in class de.hems.trafficsim.Worker +
+
+
Method which is automatically executed when the thread is started. +
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-14.html b/doc/apidoc/index-files/index-14.html new file mode 100644 index 0000000..fb2780a --- /dev/null +++ b/doc/apidoc/index-files/index-14.html @@ -0,0 +1,258 @@ + + + + + + S-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

S

+
+
setBrakeProb(float) + - Method in class de.hems.trafficsim.Track +
+
+
Update the brake probability of all vehicles.
+
+
setBrakeProb(float) + - Method in class de.hems.trafficsim.Vehicle +
+
+
Setter for brakeProb
+
+
setFrameskip(int) + - Method in class de.hems.trafficsim.Worker +
+
+
Updates the amount of simulation steps between to view frames.
+
+
setMaxVelocity(float) + - Method in class de.hems.trafficsim.Track +
+
+
Update the maximum velocity of all vehicles.
+
+
setMaxVelocity(float) + - Method in class de.hems.trafficsim.Vehicle +
+
+
Setter for maxVelocity
+
+
setSize(int, int) + - Method in class de.hems.trafficsim.Renderer +
+
+
Updates the dimension information of the renderer.
+
+
setStop(boolean) + - Method in class de.hems.trafficsim.Worker +
+
+
Sets a flag that causes the worker to stop.
+
+
setTrack(Track) + - Method in class de.hems.trafficsim.Renderer +
+
+
Updates the track of the Surface.
+
+
setWaitTime(int) + - Method in class de.hems.trafficsim.Track +
+
+
Update the wait time of the simulation.
+
+
steps + - Variable in class de.hems.trafficsim.Track +
+
+
counter for executed simulation steps
+
+
stop - Variable in class + de.hems.trafficsim.Worker
+
+
Stop flag, indicating that the worker shall stop
+
+
stopWorker() + - Method in class de.hems.trafficsim.MainActivity +
+
+
Stops the current worker thread.
+
+
sumAvgMemory + - Variable in class de.hems.trafficsim.Track +
+
+
sum of all vehicle speeds during the simulation, used for average + calculation +
+
+
sumDelAvgMemory + - Variable in class de.hems.trafficsim.Track +
+
+
sum of all vehicle speeds during the simulation ignoring the first + ten steps, + used for average calculation +
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-15.html b/doc/apidoc/index-files/index-15.html new file mode 100644 index 0000000..8b7c11b --- /dev/null +++ b/doc/apidoc/index-files/index-15.html @@ -0,0 +1,248 @@ + + + + + + T-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

T

+
+
timeElapse() + - Method in class de.hems.trafficsim.Track +
+
+
Calculates on simulation step ahead and then waits for the configured + wait time. +
+
+
timeElapse() + - Method in class de.hems.trafficsim.Vehicle +
+
+
Updates the position of the vehicle according to it's previously + calculated speed. +
+
+
TimeRecordView - Class in de.hems.trafficsim
+
+
A Surface View which servers as a stage for a renderer.
+
+
TimeRecordView(Context, Track) + - Constructor for class de.hems.trafficsim.TimeRecordView
+
 
+
tooShortPerHeight + - Variable in class de.hems.trafficsim.Renderer +
+
+
amount of pixels per height which are lost by rounding
+
+
tooShortPerTrackLength + - Variable in class de.hems.trafficsim.Renderer +
+
+
amount of pixels per track position which are lost by rounding
+
+
track + - Variable in class de.hems.trafficsim.MainActivity +
+
+
the track to show in the activity
+
+
track - Variable in + class de.hems.trafficsim.Renderer
+
+
the track to render
+
+
Track - Class in de.hems.trafficsim
+
+
Main model class of TrafficSim.
+
+
Track(int, float, float, float, int, int) + - Constructor for class de.hems.trafficsim.Track +
+
+
Constructor for a new Track.
+
+
track + - Variable in class de.hems.trafficsim.Worker +
+
+
the track to simulate
+
+
trackLength + - Variable in class de.hems.trafficsim.Track +
+
+
length of the track
+
+
trackLength + - Variable in class de.hems.trafficsim.Vehicle +
+
+
length of the track the vehicle is placed on
+
+
trackView - + Variable in class de.hems.trafficsim.MainActivity +
+
+
the surface view on which the renderer draws the track history
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-16.html b/doc/apidoc/index-files/index-16.html new file mode 100644 index 0000000..30ad18d --- /dev/null +++ b/doc/apidoc/index-files/index-16.html @@ -0,0 +1,185 @@ + + + + + + U-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

U

+
+
update_avg() + - Method in class de.hems.trafficsim.Track +
+
+
Utility function which updates the averages values with the results + from the last simulation + step. +
+
+
updateStats() + - Method in class de.hems.trafficsim.MainActivity +
+
+
Updates the statistics view.
+
+
updateTrack() + - Method in class de.hems.trafficsim.MainActivity +
+
+
Creates a new track with the current settings.
+
+
updateVelocity(float) + - Method in class de.hems.trafficsim.Vehicle +
+
+
Calculates the new velocity of the vehicle based on the following + rules: + + Increase by one if the vehicle is slower than it's maximum speed + Random brake by one + Break if the distance to the forerunner is less than it's speed +
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-17.html b/doc/apidoc/index-files/index-17.html new file mode 100644 index 0000000..760b3c2 --- /dev/null +++ b/doc/apidoc/index-files/index-17.html @@ -0,0 +1,205 @@ + + + + + + V-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

V

+
+
Vehicle - Class in de.hems.trafficsim
+
+
Model class which represents a vehicle in the simulation.
+
+
Vehicle(int, int, float, float, float) + - Constructor for class de.hems.trafficsim.Vehicle +
+
+
Constructs a new vehicle.
+
+
vehicles + - Variable in class de.hems.trafficsim.Track +
+
+
list a vehicles on the track
+
+
VehicleTimeRecord - Class in de.hems.trafficsim
+
+
Model class which keeps the previous simulation data for analysis. +
+
+
VehicleTimeRecord(int, float, float, float) + - Constructor for class de.hems.trafficsim.VehicleTimeRecord
+
+
Construct a new VehicleTimeRecord.
+
+
velocity - + Variable in class de.hems.trafficsim.VehicleTimeRecord
+
+
the velocity of the vehicle during the last simulation step
+
+
viewStack - + Variable in class de.hems.trafficsim.MainActivity +
+
+
the layout which keeps the surface view
+
+
vtrList - Variable in + class de.hems.trafficsim.Track
+
+
list of resulting time records of the simulation
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-18.html b/doc/apidoc/index-files/index-18.html new file mode 100644 index 0000000..c5f5bc7 --- /dev/null +++ b/doc/apidoc/index-files/index-18.html @@ -0,0 +1,182 @@ + + + + + + W-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

W

+
+
waitTime + - Variable in class de.hems.trafficsim.Track +
+
+
current configured wait time between two simulation steps
+
+
width - Variable in + class de.hems.trafficsim.Renderer
+
+
width of the surface to draw to
+
+
worker + - Variable in class de.hems.trafficsim.MainActivity +
+
+
the thread which runs the simulation and visualization
+
+
Worker - Class in de.hems.trafficsim
+
+
Calculation thread, which runs the simulation itself and also updates + the view with a set rate. +
+
+
Worker(Track, MainActivity, Renderer, int) + - Constructor for class de.hems.trafficsim.Worker +
+
+
Construct a new worker.
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-19.html b/doc/apidoc/index-files/index-19.html new file mode 100644 index 0000000..36f0651 --- /dev/null +++ b/doc/apidoc/index-files/index-19.html @@ -0,0 +1,177 @@ + + + + + + W-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I L M O P R S T U V W  + + +

W

+
+
waitTime + - Variable in class de.hems.trafficsim.Track +
+
 
+
width - Variable in + class de.hems.trafficsim.Renderer
+
 
+
worker + - Variable in class de.hems.trafficsim.MainActivity +
+
 
+
Worker - Class in de.hems.trafficsim
+
+
Calculation thread, which runs the simulation itself and also updates + the view with a set rate. +
+
+
Worker(Track, MainActivity, Renderer, int) + - Constructor for class de.hems.trafficsim.Worker +
+
+
Construct a new worker.
+
+
+ A B C D E F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-2.html b/doc/apidoc/index-files/index-2.html new file mode 100644 index 0000000..d32289c --- /dev/null +++ b/doc/apidoc/index-files/index-2.html @@ -0,0 +1,159 @@ + + + + + + B-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

B

+
+
brakeProb + - Variable in class de.hems.trafficsim.Track +
+
+
currently configured brake probability for all vehicles
+
+
brakeProb + - Variable in class de.hems.trafficsim.Vehicle +
+
+
probability of the vehicle to brake without reason
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-3.html b/doc/apidoc/index-files/index-3.html new file mode 100644 index 0000000..a740630 --- /dev/null +++ b/doc/apidoc/index-files/index-3.html @@ -0,0 +1,160 @@ + + + + + + C-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

C

+
+
createVehiclesList(int) + - Method in class de.hems.trafficsim.Track +
+
+
Utility function to add vehicles to the Track.
+
+
curVelocity + - Variable in class de.hems.trafficsim.Vehicle +
+
+
current velocity of the vehicle
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-4.html b/doc/apidoc/index-files/index-4.html new file mode 100644 index 0000000..b6f915f --- /dev/null +++ b/doc/apidoc/index-files/index-4.html @@ -0,0 +1,221 @@ + + + + + + D-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

D

+
+
de.hems.trafficsim - package + de.hems.trafficsim +
+
 
+
defaultBrakeProb + - Static variable in class de.hems.trafficsim.MainActivity
+
+
default value of brake probability
+
+
defaultDelay + - Static variable in class de.hems.trafficsim.MainActivity
+
+
default value of the delay between two simulation steps
+
+
defaultFrameskip + - Static variable in class de.hems.trafficsim.MainActivity
+
+
default value of the number of vehicles on the track
+
+
defaultHistoryLength + - Static variable in class de.hems.trafficsim.MainActivity
+
+
default value of the number of vehicles on the track
+
+
defaultMaxVelocity + - Static variable in class de.hems.trafficsim.MainActivity
+
+
default value of the maximum velocity of the vehicles
+
+
defaultNoOfVehicles + - Static variable in class de.hems.trafficsim.MainActivity
+
+
default value of the number of vehicles on the track
+
+
defaultTrackLength + - Static variable in class de.hems.trafficsim.MainActivity
+
+
default value of the length of the track
+
+
delayedAvg + - Variable in class de.hems.trafficsim.Track +
+
+
average over all velocities in the simulation, ignoring the first ten + steps +
+
+
draw() - Method in + class de.hems.trafficsim.Renderer
+
+
Draws the current state of the track history to the Surface.
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-5.html b/doc/apidoc/index-files/index-5.html new file mode 100644 index 0000000..c8b78ee --- /dev/null +++ b/doc/apidoc/index-files/index-5.html @@ -0,0 +1,152 @@ + + + + + + F-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

F

+
+
frameskip + - Variable in class de.hems.trafficsim.Worker +
+
+
Amount of simulation steps between two frames in the view.
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-6.html b/doc/apidoc/index-files/index-6.html new file mode 100644 index 0000000..55479e8 --- /dev/null +++ b/doc/apidoc/index-files/index-6.html @@ -0,0 +1,270 @@ + + + + + + G-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

G

+
+
getColor(float, float) + - Method in class de.hems.trafficsim.Renderer +
+
+
Utility function which calculates a color from the relation between + the current speed of a + vehicle and it's maximum speed (from red over yellow to green). +
+
+
getCurVelocity() + - Method in class de.hems.trafficsim.Vehicle +
+
+
Getter for curVelocity
+
+
getDelayedAvg() + - Method in class de.hems.trafficsim.Track +
+
+
Getter for delayedAvg
+
+
getHistoryLength() + - Method in class de.hems.trafficsim.Track +
+
+
Getter for historyLength
+
+
getLastAvg() + - Method in class de.hems.trafficsim.Track +
+
+
Getter for lastAvg
+
+
getListSemaphore() + - Method in class de.hems.trafficsim.Track +
+
+
Getter for listSemaphore
+
+
getMaxVelocity() + - Method in class de.hems.trafficsim.Vehicle +
+
+
Getter for maxVelocity
+
+
getMaxVelocity() + - Method in class de.hems.trafficsim.VehicleTimeRecord
+
 
+
getOverallAvg() + - Method in class de.hems.trafficsim.Track +
+
+
Getter for overallAvg
+
+
getPosition() + - Method in class de.hems.trafficsim.Vehicle +
+
+
Getter for position
+
+
getPosition() + - Method in class de.hems.trafficsim.VehicleTimeRecord
+
 
+
getSteps() + - Method in class de.hems.trafficsim.Track +
+
+
Getter for steps
+
+
getTrackLength() + - Method in class de.hems.trafficsim.Track +
+
+
Getter for trackLength
+
+
getVehicles() + - Method in class de.hems.trafficsim.Track +
+
+
Getter for vehicles
+
+
getVelocity() + - Method in class de.hems.trafficsim.VehicleTimeRecord
+
 
+
getVtrList() + - Method in class de.hems.trafficsim.Track +
+
+
Getter for vtrList
+
+
gui - Variable in class + de.hems.trafficsim.Worker
+
+
the MainActivity of the gui
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-7.html b/doc/apidoc/index-files/index-7.html new file mode 100644 index 0000000..e9432e0 --- /dev/null +++ b/doc/apidoc/index-files/index-7.html @@ -0,0 +1,166 @@ + + + + + + H-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

H

+
+
height - Variable in + class de.hems.trafficsim.Renderer
+
+
height of the surface to draw to
+
+
historyLength + - Variable in class de.hems.trafficsim.Track +
+
+
length of the history kept
+
+
holder - Variable in + class de.hems.trafficsim.Renderer
+
+
holder of the surface the renderer draws to
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-8.html b/doc/apidoc/index-files/index-8.html new file mode 100644 index 0000000..04274bb --- /dev/null +++ b/doc/apidoc/index-files/index-8.html @@ -0,0 +1,159 @@ + + + + + + I-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

I

+
+
id - Variable in class + de.hems.trafficsim.Vehicle
+
+
a number to index the vehicle
+
+
id + - Variable in class de.hems.trafficsim.VehicleTimeRecord
+
+
the id of the vehicle it belongs to
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index-files/index-9.html b/doc/apidoc/index-files/index-9.html new file mode 100644 index 0000000..178e712 --- /dev/null +++ b/doc/apidoc/index-files/index-9.html @@ -0,0 +1,159 @@ + + + + + + L-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D F G H I L M O P R S T U V W  + + +

L

+
+
lastAvg - Variable in + class de.hems.trafficsim.Track
+
+
average over all velocities in the last step
+
+
listSemaphore + - Variable in class de.hems.trafficsim.Track +
+
+
semaphore protecting the vtrlist
+
+
+ A B C D F G H I L M O P R S T U V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/index.html b/doc/apidoc/index.html new file mode 100644 index 0000000..92af2a3 --- /dev/null +++ b/doc/apidoc/index.html @@ -0,0 +1,78 @@ + + + + + + Generated Documentation (Untitled) + + + + + + + <noscript> + <div>JavaScript is disabled on your browser.</div> + </noscript> + <h2>Frame Alert</h2> + <p>This document is designed to be viewed using the frames feature. If you see this message, + you are using a non-frame-capable web client. Link to <a + href="de/hems/trafficsim/package-summary.html">Non-frame version</a>.</p> + + + diff --git a/doc/apidoc/overview-tree.html b/doc/apidoc/overview-tree.html new file mode 100644 index 0000000..8391672 --- /dev/null +++ b/doc/apidoc/overview-tree.html @@ -0,0 +1,240 @@ + + + + + + Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For All Packages

+ Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/apidoc/package-list b/doc/apidoc/package-list new file mode 100644 index 0000000..ed05021 --- /dev/null +++ b/doc/apidoc/package-list @@ -0,0 +1 @@ +de.hems.trafficsim diff --git a/doc/apidoc/script.js b/doc/apidoc/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/doc/apidoc/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/doc/apidoc/stylesheet.css b/doc/apidoc/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/doc/apidoc/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +}