AGENT中JAVA语法问题
本在做AGENT程序,从网站上得到下面的程序,可运行.
public void setup(){
SimpleBehaviour decative = new SimpleBehaviour(this){
boolean finished = false;
int state = 0;
public void action(){
switch(state){
case 0:
System.out.println( "Do ");
break;
case 1:
System.out.println( "Re ");
break;
case 2:
System.out.println( "Me ");
finished = true;
break;