I already found two problems, one which I didn't solve yet. Other I found the solution in the Internet. Rembering all, I'm using Repast S, the 2.2 version and the Stupidmodel was implemented using the version 2.0.
The two problems:
- GetLabel() in the DefaultStyleOGL2D.
The suggestion made to add a visible label to each Bug agent doesn't work. I read that there was a 'bug' related to this problem. But I only found a correction made for the 2.1 version, which I tried in the version I use, the 2.2., and it didn't work. Although I've added the following method to the BugStyleOGL2D class, I never got as output the value of the label (even if it is just "bla bla");
@Override
public String getLabel(final Object agent) {
//System.out.print(bug.getSize());
if (agent instanceof Bug){
final Bug bug = (Bug) agent;
// System.out.println(label);
return new String("bla bla");
}
return super.getLabel(agent);
}
Sem comentários:
Enviar um comentário