Max number of objects/agents

12 views
Skip to first unread message

Richard Stocker

unread,
Jul 1, 2015, 6:14:44 PM7/1/15
to brahms...@googlegroups.com
Hi,

I was wondering if there is a maximum for how many agents or objects we can declare?

We have about 200 agents but possibly 500-1000 objects, when we try to compile the Brahms Composer fails.  We get no error messages when the compile fails but when we reduce the number of agents/objects to something extremely small then it compiles fine.  

What we are trying to do is simulate the airspace around an airport with planes coming in to land.  We have a lot of agents/objects because there are 156 airplanes and each one needs its own list of flight segments to make a flight plan, so each plane has a flight plan and each flight plan consists of about a dozen flight segments.

Richard

Maarten Sierhuis

unread,
Jul 2, 2015, 11:40:40 PM7/2/15
to brahms...@googlegroups.com
Richard,

I am not sure what you mean with "the Brahms Composer fails.” Fails how? Can you provide a little more information.

There is no limit to the number of agents and objects you can declare. But, are you sure you want to have that many Brahms agents or objects? If they all need some workframes/thoughtframes then ok … otherwise, why not use Java objects for the airplanes (Brahms agents can use Java objects directly in preconditions, and you can create Java objects and call java methods from workframes.). Another way is to create the Brahms agents/objects dynamically, instead of statically.


Maarten Sierhuis, Ph.D.
Founder & CTO, Ejenta
> --
> You received this message because you are subscribed to the Google Groups "Brahms Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to brahms-forum...@googlegroups.com.
> To post to this group, send email to brahms...@googlegroups.com.
> Visit this group at http://groups.google.com/group/brahms-forum.
> For more options, visit https://groups.google.com/d/optout.

Richard Stocker

unread,
Jul 6, 2015, 1:04:47 PM7/6/15
to brahms...@googlegroups.com
When using the Composer the build would return "Build Failed", nothing else.  We seem to have resolved the issue though, it was the number of files not the number of agents.  We had approximately 200 files storing all the agents/objects, we switched to using just 4 and it now works fine.  So with all the agents/objects in 4 files we get "Build Successful" but with the same code split in to 200 different files it returns "Build Fail" with 0 error messages.  We were going to try compiling via the command line to see if the same issue occurs but we haven't checked since we now have it working.

"why not use Java objects for the airplanes"
 - We are using our own implementation of the Brahms semantics, for workload measurement and model checking, but the one thing we don't have implemented yet are Java activities.  We don't have time to implement the Java activities so we're avoiding using them, any java code we do need is added via a hack, eventually I intend to fix this.

Richard

Maarten Sierhuis

unread,
Jul 6, 2015, 1:18:30 PM7/6/15
to brahms...@googlegroups.com
Richard,

Did you check the EventInformation file in the logs folder? You might have found a more descriptive error. 200 files is a bit much ;-)

Maarten.
Reply all
Reply to author
Forward
0 new messages