其他分享
首页 > 其他分享> > 地铁查询系统04

地铁查询系统04

作者:互联网

GraphModel.java
package Model;

import java.util.List;

public class GraphModel { //邻接表

String StationName; //头节点
List<String> stations; //相近节点
List<String> LineName; //所在线路名称
boolean isVisited = false;

public String getStationName() {
return StationName;
}

public void setStationName(String stationName) {
StationName = stationName;
}

public List<String> getLineName() {
return LineName;
}

public void setLineName(List<String> lineName) {
LineName = lineName;
}

public List<String> getStations() {
return stations;
}

public void setStations(List<String> stations) {
this.stations = stations;
}


}
LineModel.java:
package Model;

import java.util.List;

public class LineModel { //线路信息

String LineName; //线路名称
List<String> stations; //线路所含站点

public String getLineName() {
return LineName;
}
public void setLineName(String lineName) {
LineName = lineName;
}
public List<String> getStations() {
return stations;
}
public void setStations(List<String> stations) {
this.stations = stations;
}


}
ResultModel.java:
package Model;

public class ResultModel {
String startStation=null; //当前站点
String lastStation=null; //上一站点

public String getLastStation() {
return lastStation;
}
public void setLastStation(String lastStation) {
this.lastStation = lastStation;
}
// boolean isExchange = false; //true为换乘,false为没有换乘

public String getStartStation() {
return startStation;
}
public void setStartStation(String startStation) {
this.startStation = startStation;
}
// public boolean isExchange() {
// return isExchange;
// }
// public void setExchange(boolean isExchange) {
// this.isExchange = isExchange;
// }

}
 

标签:return,String,04,stations,void,List,查询,地铁,public
来源: https://www.cnblogs.com/libin159/p/16373042.html