Package core.components
Class PlusStation
- java.lang.Object
-
- core.components.Station
-
- core.components.PlusStation
-
public class PlusStation extends Station
The PlusStation class : This class defines what is a plus station on the application
-
-
Constructor Summary
Constructors Constructor Description PlusStation(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots)
A (simpler) PlusStation constructorPlusStation(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots, double money, int numberOfDroppings)
A PlusStation constructor
-
Method Summary
-
Methods inherited from class core.components.Station
addMoney, addNumberOfDroppings, addNumberOfRentings, equals, getCoordinate, getElectricalParkingSlot, getExistTypeBike, getId, getMechanicalParkingSlot, getMoney, getNumberOfDroppings, getNumberOfRentings, getNumberOfStations, getOneFreeSlot, getParkingSlots, getParkingSlotTypeBicycle, getStationTerminal, hasAvailableElectricalBicycle, hasAvailableMechanicalBicycle, hashCode, hasOneSlotFree, isOnService, removeMoney, setCoordinate, setMoney, setNumberOfDroppings, setNumberOfRentings, setOnService, setParkingSlots, toString
-
-
-
-
Constructor Detail
-
PlusStation
public PlusStation(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots, double money, int numberOfDroppings)
A PlusStation constructor- Parameters:
coordinate
- coordinate that will be used to place a plus stationonService
- a boolean parameter to know if the station will be on serviceparkingSlots
- a list of parking slots that will populate the plus stationmoney
- the initial money that the station will havenumberOfDroppings
- the number of droppings (or locations)
-
PlusStation
public PlusStation(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots)
A (simpler) PlusStation constructor- Parameters:
coordinate
- coordinate that will be used to place a plus stationonService
- a boolean parameter to know if the station will be on serviceparkingSlots
- a list of parking slots that will populate the plus station
-
-