Messages

The syntax for sending a message is:

Java has polymorphism (you can have methods with the same name that accept different parameters). e.g. the following is possible:

void setColor(float red, float green, float blue) {
      Color g = new Color();
      g.setColor(red);
      g.setColor(green);
      g.setColor(blue);
   }

Note: it is important when using Swarm to remember that polymorphism is not preserved inside Swarm, so any messages you want sent through the scheduling machinery must be associated with a unique name.