Package core.components
Class Manager
- java.lang.Object
-
- core.components.User
-
- core.components.Manager
-
public class Manager extends User
The Manager class: This class implements the manager object it will have access to all information on all systems in the core/CLI applications
-
-
Constructor Summary
Constructors Constructor Description Manager(java.lang.String name, java.awt.Point coordinate, int creditCardNumber, double money)The Manager constructor: It defines how we can instantiate the Manager class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdisplaySystemReport(MyVelibSystem system)This method allows the manager to see a report for a given systemjava.lang.StringseeCurrentStationState(MyVelibSystem system, int stationID)This method allows the manager to see the current state of a given station on a give systemjava.lang.StringseeCurrentStatus(MyVelibSystem system, int userID)This is the method that allows the manager to see the current status of a giver user in a given systemjava.lang.StringseeMyStatus()This is the method that allows the manager to see his current status (toString method)-
Methods inherited from class core.components.User
addCard, addMoney, addRenting, addSpentTimeOnElectricalBicycle, addSpentTimeOnMechanicalBicycle, addTimeCredit, dropBicyclePlanning, dropBicyclePlanningWithIntervalOfTime, equals, getAllMoneyCharged, getBicycle, getCard, getCoordinate, getCreditCardNumber, getCurrentMoneyCharged, getId, getMoney, getName, getNumberOfRentings, getNumberOfUsers, getRentStationID, getRentTime, getTimeCreditBalance, getTimeSpentOnElectricalBicycle, getTimeSpentOnMechanicalBicycle, hashCode, removeMoney, removeTimeCredit, rentBicyclePlanning, setAllMoneyCharged, setBicycle, setCard, setCoordinate, setCreditCardNumber, setCurrentMoneyCharged, setMoney, setName, setNumberOfRentings, setRentStationID, setRentTime, setTimeCreditBalance, setTimeSpentOnElectricalBicycle, setTimeSpentOnMechanicalBicycle, toString
-
-
-
-
Constructor Detail
-
Manager
public Manager(java.lang.String name, java.awt.Point coordinate, int creditCardNumber, double money)The Manager constructor: It defines how we can instantiate the Manager class- Parameters:
name- The name of the managercoordinate- The coordinate that the manager will be insertedcreditCardNumber- The credit card number of the managermoney- The amount of money that the manager will have in the beginning of the application
-
-
Method Detail
-
seeMyStatus
public java.lang.String seeMyStatus()
This is the method that allows the manager to see his current status (toString method)- Overrides:
seeMyStatusin classUser- Returns:
- the manager toString
-
seeCurrentStatus
public java.lang.String seeCurrentStatus(MyVelibSystem system, int userID)
This is the method that allows the manager to see the current status of a giver user in a given system- Overrides:
seeCurrentStatusin classUser- Parameters:
system- The MyVelibSystem that the user is inuserID- The user id- Returns:
- A string to see the current status
-
seeCurrentStationState
public java.lang.String seeCurrentStationState(MyVelibSystem system, int stationID)
This method allows the manager to see the current state of a given station on a give system- Overrides:
seeCurrentStationStatein classUser- Parameters:
system- the system that the station is supposed to bestationID- the station id- Returns:
- A string to see the current status
-
displaySystemReport
public java.lang.String displaySystemReport(MyVelibSystem system)
This method allows the manager to see a report for a given system- Overrides:
displaySystemReportin classUser- Parameters:
system- the system that will be studied- Returns:
- A string to see the current status
-
-