Commit 682656ed by 余根龙

绿信比

parent 0601763e
...@@ -25,6 +25,8 @@ public class Cycle { ...@@ -25,6 +25,8 @@ public class Cycle {
// 周期序号 // 周期序号
private int cycleOrder; private int cycleOrder;
//绿信比
private Double greenRadio;
// 周期内相位列表(依次执行) // 周期内相位列表(依次执行)
private List<Phase> phaseList; private List<Phase> phaseList;
...@@ -84,4 +86,12 @@ public class Cycle { ...@@ -84,4 +86,12 @@ public class Cycle {
public void setPhaseList(List<Phase> phaseList) { public void setPhaseList(List<Phase> phaseList) {
this.phaseList = phaseList; this.phaseList = phaseList;
} }
public Double getGreenRadio() {
return greenRadio;
}
public void setGreenRadio(Double greenRadio) {
this.greenRadio = greenRadio;
}
} }
...@@ -7,9 +7,12 @@ import java.util.Date; ...@@ -7,9 +7,12 @@ import java.util.Date;
*/ */
public class Phase { public class Phase {
//周期ID
private Long cycleId;
// 路口编号
private String crossCode;
// 相位编号 // 相位编号
private String phaseValue; private String phaseValue;
// 相位开始时间 // 相位开始时间
private Date beginTime; private Date beginTime;
...@@ -28,6 +31,12 @@ public class Phase { ...@@ -28,6 +31,12 @@ public class Phase {
// 相位全红时间 // 相位全红时间
private Long allRed; private Long allRed;
// 阶段绿信比
private Double greenRatio;
// 阶段有效绿灯时长
private Long validGreen;
public String getPhaseValue() { public String getPhaseValue() {
return phaseValue; return phaseValue;
} }
...@@ -83,4 +92,36 @@ public class Phase { ...@@ -83,4 +92,36 @@ public class Phase {
public void setAllRed(Long allRed) { public void setAllRed(Long allRed) {
this.allRed = allRed; this.allRed = allRed;
} }
public Long getCycleId() {
return cycleId;
}
public void setCycleId(Long cycleId) {
this.cycleId = cycleId;
}
public String getCrossCode() {
return crossCode;
}
public void setCrossCode(String crossCode) {
this.crossCode = crossCode;
}
public Double getGreenRatio() {
return greenRatio;
}
public void setGreenRatio(Double greenRatio) {
this.greenRatio = greenRatio;
}
public Long getValidGreen() {
return validGreen;
}
public void setValidGreen(Long validGreen) {
this.validGreen = validGreen;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment