Last active
August 29, 2015 14:05
-
-
Save lutzh/24a0019c12a4573f0405 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright © 2012 Typesafe, Inc. All rights reserved. | |
*/ | |
package com.typesafe.training.scalatrain | |
object TestData { | |
val munich = Station("Munich") | |
val nuremberg = Station("Nuremberg") | |
val cologne = Station("Cologne") | |
val essen = Station("Essen") | |
val ice724MunichTime = Time(8, 50) | |
val ice724NurembergTime = Time(10) | |
val ice724CologneTime = Time(13, 39) | |
val ice726MunichTime = Time(7, 50) | |
val ice726NurembergTime = Time(9) | |
val ice726CologneTime = Time(13, 2) | |
val ice724 = Train( | |
"ICE", | |
724, | |
Vector(ice724MunichTime -> munich, ice724NurembergTime -> nuremberg, ice724CologneTime -> cologne) | |
) | |
val ice726 = Train( | |
"ICE", | |
722, | |
Vector(ice726MunichTime -> munich, ice726NurembergTime -> nuremberg, ice726CologneTime -> essen) | |
) | |
val planner = new JourneyPlanner(Set(ice724, ice726)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment