Package core.components
Class StandardStation
- java.lang.Object
-
- core.components.Station
-
- core.components.StandardStation
-
public class StandardStation extends Station
The StandardStation class : This class defines what is a standard station on the application
-
-
Constructor Summary
Constructors Constructor Description StandardStation(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots)
A (simpler) StandardStation constructorStandardStation(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots, double money, int numberOfDroppings)
A StandardStation 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
-
StandardStation
public StandardStation(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots, double money, int numberOfDroppings)
A StandardStation 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)
-
StandardStation
public StandardStation(java.awt.Point coordinate, boolean onService, java.util.List<ParkingSlot> parkingSlots)
A (simpler) StandardStation 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
-
-