Package cli.commands
Class ReturnBicycle
- java.lang.Object
 - 
- cli.commands.ReturnBicycle
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ReturnBicycle() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanhasGoodInput(java.lang.String[] args)This methods is used to check if the command has good input from the userstatic voidhelpCommand(java.lang.String[] args)This is the help command: it displays a message to better explain the command itselfstatic voidmain(java.lang.String[] args)main() is the implementation of the command.static voidwrongArgumentHelp()This method implements all the help that will be displayed to the user if he enters a wrong input 
 - 
 
- 
- 
Method Detail
- 
main
public static void main(java.lang.String[] args)
main() is the implementation of the command. It will interact with the core.Main application returnBicycle [userID, stationID, time] : to let the user userID returning a bicycle to station stationID at a given instant of time time (if no parking bay is available should behave accordingly). This command should display the cost of the rent- Parameters:
 args- the arguments of the command
 
- 
helpCommand
public static void helpCommand(java.lang.String[] args)
This is the help command: it displays a message to better explain the command itself- Parameters:
 args- the arguments of the command
 
- 
wrongArgumentHelp
public static void wrongArgumentHelp()
This method implements all the help that will be displayed to the user if he enters a wrong input 
- 
hasGoodInput
public static boolean hasGoodInput(java.lang.String[] args)
This methods is used to check if the command has good input from the user- Parameters:
 args- the arguments of the command- Returns:
 - true, if the command has good input. false, otherwise
 
 
 - 
 
 -