jill/src/main/java/io/github/agentsoz/jill/lang/Agent.java
public void setGoals(byte[] bs) {
    goals = new byte[bs.length];
    System.arraycopy(bs, 0, goals, 0, goals.length);
  }
public void setGoals(byte[] bs) {
    goals = new byte[bs.length];
    System.arraycopy(bs, 0, goals, 0, goals.length);
  }
Set's this agent's top level goals, i.e., {@link #goals}.

@param bs an array of goal IDs (must exist in the
{@link io.github.agentsoz.jill.core.GlobalState#goalTypes} catalog.