Kereta Yarsi Indonesia
Loading...
Searching...
No Matches
model.Station Class Reference

Public Member Functions

 Station ()
 
 Station (int stationID, String stationCode, String name, String city)
 
int getStationID ()
 
void setStationID (int stationID)
 
String getStationCode ()
 
void setStationCode (String stationCode)
 
String getName ()
 
void setName (String name)
 
String getCity ()
 
void setCity (String city)
 

Detailed Description

The Station class represents a railway station in the KYI Integrated system.

It includes details such as the station's ID, code, name, and city. This class provides getter and setter methods for accessing and modifying these details.

Instances of this class are used to represent and manipulate station data within the application.

Author
Muhammad Rizal Anditama Nugraha

Constructor & Destructor Documentation

◆ Station() [1/2]

model.Station.Station ( )
inline

Default constructor. Initializes a new instance of the Station class with default values.

◆ Station() [2/2]

model.Station.Station ( int  stationID,
String  stationCode,
String  name,
String  city 
)
inline

Initializes a new instance of the Station class with the specified values.

Parameters
stationIDthe ID of the station
stationCodethe code of the station
namethe name of the station
citythe city where the station is located

Member Function Documentation

◆ getCity()

String model.Station.getCity ( )
inline

Gets the city where the station is located.

Returns
the city

◆ getName()

String model.Station.getName ( )
inline

Gets the name of the station.

Returns
the name

◆ getStationCode()

String model.Station.getStationCode ( )
inline

Gets the code of the station.

Returns
the stationCode

◆ getStationID()

int model.Station.getStationID ( )
inline

Gets the ID of the station.

Returns
the stationID

◆ setCity()

void model.Station.setCity ( String  city)
inline

Sets the city where the station is located.

Parameters
citythe city to set

◆ setName()

void model.Station.setName ( String  name)
inline

Sets the name of the station.

Parameters
namethe name to set

◆ setStationCode()

void model.Station.setStationCode ( String  stationCode)
inline

Sets the code of the station.

Parameters
stationCodethe stationCode to set

◆ setStationID()

void model.Station.setStationID ( int  stationID)
inline

Sets the ID of the station.

Parameters
stationIDthe stationID to set

The documentation for this class was generated from the following file: