Results 1 to 2 of 2
  1. #1
    startoverIT is offline Member
    Join Date
    May 2016
    Posts
    2
    Rep Power
    0

    Default AnyLogic - Dynamic Agents

    Hi, I have used Java before but am new to AnyLogic. I am trying to create a model that would simulate community development, so a community would have different areas that can build houses on. Currently, I randomly generated a length and width to represent a land, depending on its size, I want to be able to determine how many houses (with a specific land size) can be build on this land. I have a collection of lands, and in each land, I have a collection of houses (which is empty initially and agents are dynamically added), what I am having problem is I can't seem to organize them in a specific fashion (in row and column) in this land. Anyone can help?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: AnyLogic - Dynamic Agents

    Is there an AnyLogic site that you could ask questions about how to use it?
    Do you have any specific java programming questions?
    problem is I can't seem to organize them in a specific fashion (in row and column) in this land.
    One solution would be a 2Dim array.
    Another solution would be to create an class for a row that holds the objects in the columns on that row. Then put the objects holding a rows contents in a List.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 1
    Last Post: 07-05-2015, 11:57 PM
  2. Anylogic-jre
    By lasmary in forum New To Java
    Replies: 0
    Last Post: 03-29-2014, 11:24 AM
  3. Sending and receiving table between two agents
    By MariuszS in forum Advanced Java
    Replies: 0
    Last Post: 07-12-2012, 10:56 PM
  4. AnyLogic Java HELP
    By hello_hello in forum New To Java
    Replies: 3
    Last Post: 12-24-2011, 02:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •