templates.CArtAgOartifact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jason Show documentation
Show all versions of jason Show documentation
Jason is a fully-fledged interpreter for an extended version of AgentSpeak, a BDI agent-oriented logic programming language.
// 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