📄 redukou.java
字号:
package net.aetherial.gis.jiaotongbu.output.tocheck.type;
import net.aetherial.gis.jiaotongbu.output.type.Dukou;
import org.w3c.dom.Node;
import net.aetherial.gis.surface.ItemValue;
import net.aetherial.gis.publicuse.wpt.WPTsTrack;
import net.aetherial.gis.jiaotongbu.output.publicuse.Item;
import net.aetherial.gis.publicuse.wpt.getWptZhuanghao;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class ReDukou extends Dukou{
public ReDukou(Node wpt) {
super(wpt);
}
private String getRefZhuanghao(){
getWptZhuanghao getzhuanghao = new getWptZhuanghao();
getzhuanghao.setWaypoint(this.wpt);
getzhuanghao.setTrack(this.hisTrack);
return getzhuanghao.getWaypointZhuanghao();
}
private String getZhuanghaoIfNotExist(){
// if (this.zhuanghao.trim().equals("")) {
// return this.getRefZhuanghao();
// }else{
// return this.zhuanghao.trim();
// }
return "";
}
private String getQlBianma(BubaoQIaoliang ql) throws Exception {
// this.getTrackName();
if (ql == null && hisTrack != null) {
return ItemValue.getTracksNumber(hisTrack).toUpperCase() +
Item.getSix_6_XianNumber() +
"L0010";
}
if (ql == null && hisTrack == null) {
Node[] trks = WPTsTrack.getWptNearTrack(wpt);
if (trks != null && trks.length != 0) {
return ItemValue.getTracksNumber(trks[0]).toUpperCase() +
Item.getSix_6_XianNumber() +
"L0010";
}
else {
throw new Exception("航点:" + this.getName() + "没有航迹。");
}
}
if (ql != null && hisTrack == null) {
return ql.getBianma();
}
else if (ql.getBianma().equals("")) {
return ItemValue.getTracksNumber(hisTrack).toUpperCase() +
Item.getSix_6_XianNumber() +
"L0010";
}
else {
try {
return ItemValue.getTracksNumber(hisTrack).toUpperCase() +
Item.getSix_6_XianNumber() +
ql.getBianma().substring(ql.getBianma().length() - 5,
ql.getBianma().length());
}
catch (Exception ex) {
return ql.getBianma();
}
}
}
private String getLXbianma(String qlBianma) {
if (qlBianma.equals("")) {
return "";
}
else {
try {
return qlBianma.substring(0, 10);
}
catch (Exception ex) {
return "";
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -