File README.md¶
Go to the documentation of this file
# SkyBehaviours coding rules
This document pertains to behavior creation. Generally, we can directly add behavior in the setup method of the agent class. However, this approach does not promote well-designed, modular, reusable, and maintainable code. Instead, the recommended approach involves creating a class for a specific behavior by extending the SKAgentBehaviour class.
In the SkyData prototype, you can create your own agent class (in the behaviour folder) which should extend SKAgentBehaviour.java.
Your class may look like:
```java
package skydata.behaviour;
// Necessary import statements
public class Behaviour_class_name extends SKAgentBehaviour {
/* Specific parameters definition */
public Behaviour_class_name(SKAgent agent){
super(agent);
}
@Override
public void action() {
/*Adding JADE behaviour here*/
}
/* Other overridden methods */
/* Your own methods */
}