All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.CArtAgOartifact Maven / Gradle / Ivy

Go to download

Jason is a fully-fledged interpreter for an extended version of AgentSpeak, a BDI agent-oriented logic programming language.

There is a newer version: 2.3
Show newest version
// CArtAgO artifact code for project 

package ;

import cartago.*;

public class  extends  {
	void init(int initialValue) {
		defineObsProperty("count", initialValue);
	}
	
	@OPERATION
	void inc() {
		ObsProperty prop = getObsProperty("count");
		prop.updateValue(prop.intValue()+1);
		signal("tick");
	}
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy