?? regle.java
字號:
package Moteur;
/**
* @author emiliendreyfus@msn.com
*
*/
public class Regle {
public int etat;
public char lettreLue;
public int nouvelEtat;
public char lettreEcrite;
public short direction;
public String toString(){
char d;
if(direction==D)
d='D';
else if(direction==G)
d='G';
else if(direction==O)
d='O';
else d='X';
return "("+etat+","+lettreLue+")->("+nouvelEtat+","+lettreEcrite+","+d+")";
}
public String toStringFichier(){
return etat+" "+lettreLue+" "+nouvelEtat+" "+lettreEcrite+" "+direction;
}
public Regle(int etat,char lu,int netat,char ecrit,short d){
direction=d;
this.etat=etat;
this.lettreLue=lu;
this.lettreEcrite=ecrit;
this.nouvelEtat=netat;
}
public Regle() {
}
static short D=1;
static short O=0;
static short G=-1;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -