⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trafficlight.java

📁 A part public bus simulation system, mainly about map design, java file, groupwork, helpful to the b
💻 JAVA
字号:
/*
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -