I need to visualize the output of my C program as a agent-based applet.

This is a discussion on I need to visualize the output of my C program as a agent-based applet. within the C Programming forums, part of the General Programming Boards category; Hi everyone. I have a program written in C, which is basically an agent-based model. Agents are located in the ...

  1. #1
    Registered User
    Join Date
    Nov 2009
    Location
    Buenos Aires, Argentina
    Posts
    4

    I need to visualize the output of my C program as a agent-based applet.

    Hi everyone.
    I have a program written in C, which is basically an agent-based model. Agents are located in the network, play a prisoner's dilemma with their neighbors, and can eliminate connections and add new ones, depending on whether they are happy in their neighborhoods.
    What I need is to visualize this dynamics in an applet (not just the final configuration, but also the temporal changes). For example, attributing colors to my agents, I want to see the patterns of the behavior on a network.
    I am not an advanced programmer, so I do not have a lot of knowledge about this. Is there any way to do it? Please, help me.
    Victoria

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    When you say "applet", are you talking about a Java applet? I don't think anyone uses those anymore.
    bit∙hub [bit-huhb] n. A source and destination for information.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,592
    > I am not an advanced programmer
    I'm confused...

    > I have a program written in C, which is basically an agent-based model.
    Because this seemed quite advanced to me, more than the usual student assignment anyway.

    Which operating system are you using?
    Which compiler?
    Do you have the source code for your agent program?
    Does it just print raw data to the console, or does it save it all in a file?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    4,282
    visualize the output as a agent-based applet
    O_o

    What does that even mean?

    I'm confused...
    Me too...

    Soma

  5. #5
    Registered User
    Join Date
    Nov 2009
    Location
    Buenos Aires, Argentina
    Posts
    4
    Thanks for messages. I will try to answer on all the questions posted. I work in Windows XP, using Dev C++ editor. The program saves the results in output files.
    When I say that I want to visualize the output as an applet, I mean the following. In the program I create a random network, vertices of this network are my agents. Each agent has two states, cooperator or defector. All agents play T periods of prisoners dilemma game with their nearest neighbours, and based on the output of the game decide whether they want to be linked to the same neighbours, or delete some links and add a new one. This will make my initial network change. One thing I want is to visualize this network, and the resulting network. The other thing I want is to be able to see how agents change their links. For example, there are many applets in the web, where it is possible to see how network changes with time. I don't know how I can do it. Is there any way to link my program with already existing platforms? if yes, where can I learn how to do it. Thanks, and I am sorry if this is so confused.

  6. #6
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Are you trying to do this in a serverless network?

    If there is a managing server present, each agent program could be set up to provide a list of it's current interconnects with other agents to the server, which would in turn visualize the network for you.

    A managing server would give you other advantages too... removing misbehaving nodes, forcing connections to orphaned nodes, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I'm trying to visualize pointers.
    By JesterJAG in forum C++ Programming
    Replies: 3
    Last Post: 12-11-2006, 05:07 PM
  2. Massive - Agent based crowd control AI
    By Mario F. in forum General AI Programming
    Replies: 4
    Last Post: 08-20-2006, 03:41 PM
  3. binary based output
    By mk555 in forum C Programming
    Replies: 15
    Last Post: 09-24-2004, 06:27 PM
  4. Output from console-based script.
    By berto in forum Windows Programming
    Replies: 0
    Last Post: 05-26-2003, 03:06 PM
  5. ServerPush C-Program->Java Applet
    By Florian Schmidt in forum C Programming
    Replies: 1
    Last Post: 06-04-2002, 05:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21