Package fr.alba0404.astuce.api
Class Astuce_API
java.lang.Object
fr.alba0404.astuce.api.Astuce_API
public class Astuce_API
extends java.lang.Object
API for the transport network Astuce in Rouen Metropole (FR).
- Version:
- 0.1
- Author:
- Alba0404
-
Constructor Summary
Constructors Constructor Description Astuce_API()
Useless constructor -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Astuce_API
public Astuce_API()Useless constructor
-
-
Method Details
-
getNext
Return the time in minute before the next transport. Return -1 if no transport, -2 and a message when there is an error.- Parameters:
line
- The line you want the next transport.station
- The station on this line.sens
- The direction you want to go.- Returns:
- The time in minute before the next transport (-1 if nothing, -2 if error).
- Throws:
StationNotOnLineException
- If the station you specified is not on the line.
-
getStations
Return stations of a line.- Parameters:
line
- The line you want the stations.- Returns:
- A list of stations of this line.
-