trafficlight.java
来自「A part public bus simulation system, mai」· Java 代码 · 共 42 行
JAVA
42 行
/*
* TrafficLight class
* last Modified on 08/Mar/2005
*/
package tools;
import java.awt.Point;
public class TrafficLight extends PtTools {
private String nameA; // name for one of the road; horizontal
private String nameB; // name for the other; vertical
public TrafficLight(Point location){
// since conditions onwhich traffic light can be placed is checked in
// mapData class, it is assumed here that the point is valid
super( location );
super.setID( 3 );
}
public String getNameA(){
return nameA;
}
public String getNameB(){
return nameB;
}
public void setNameA( String a ){
nameA = a;
}
public void setNameB( String b ){
nameB = b;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?