|
From: Nick C. <nic...@gm...> - 2009-07-07 19:38:57
|
I've made a simple test (all Java) with a 2D network display. Each
step the agents remove an edge and add one. The display does update
correctly to reflect the change. I'm using the circle layout and the
layout is set to update with the creation of new edges. What layout
are you using?
Nick
On Jul 6, 2009, at 4:36 PM, Meghan Hutchins wrote:
> Hi Nick, thanks for your help!
>
> I have a 2D display
> and my scheduling parameters are set as:
>
> Start Time: 1.0
> Priority: Last
> Frequency: Repeat
> Interval: 1.0
>
> It might also be important to note that I am not using Groovy, but
> pure Java to implement my model.
>
> In my ContextCreator class, I have a section in my .build() method
> which is supposed to schedule a "global" step behavior after every
> 10 ticks which updates the network configuration:
>
> ---------------------------------------------------
>
> public Context<SimpleAgent> build(Context<SimpleAgent> context)
> {
> ...
>
> buildNetwork();
>
> ISchedule schedule =
> RunEnvironment.getInstance().getCurrentSchedule();
> ScheduleParameters params =
> ScheduleParameters.createRepeating(10, 10);
> schedule.schedule(params, this, "step");
> }
>
> // Global step behavior that happens every 10 ticks.
> public void step()
> {
> buildNetwork();
> }
>
> -------------------------------
>
> I'd appreciate any thoughts you might have as to why this might not
> be updating properly.
>
> It looks like the boids model comes with a download of RepastS? Is
> there another place for me to download this demo directly?
>
> Thanks much,
> Meghan
>
>
>
>
>
> On Mon, Jul 6, 2009 at 11:15 AM, Nick Collier
> <nic...@gm...> wrote:
> Meghan,
>
> The display listens for changes in the network and should update
> itself accordingly. I just checked with the boids demo model which
> creates new edges and that appears to work correctly. Do you have a
> 2D or 3D display? What are the scheduling parameters of the display
> (double click on the display in the scenario tree and choose the
> last button "Sc..").
>
> Nick
>
> On Jul 5, 2009, at 8:01 PM, Meghan Hutchins wrote:
>
>> Hello,
>>
>> I am also trying to create a dynamic network by re-arranging the
>> edges every 10 ticks. My internal model appears to be working
>> properly (edges are updating correctly), however the display is not
>> updating to reflect the new edge configuration.
>>
>> I've looked for some sort of Runtime-network-display-update
>> method... but with no avail.
>> Any help would be greatly appreciated.
>>
>> Thanks much,
>> Meghan
>>
>>
>>
>> On Tue, Jun 30, 2009 at 4:36 AM, Jayawardene, Krishna <k.j...@au...
>> > wrote:
>> Hi,
>>
>>
>> I have been trying to dynamically create random networks by
>> creating a subcontext (using the ContextBuilder class) which
>> contains a network projection. Everytime a new network is required
>> the old subcontext is deleted and a new one is generated with the
>> new network.
>>
>>
>> The internal model seems to be working fine (at least the number of
>> agents in the subcontext and the number of edges change correctly
>> when a new network is dynamically created ) However the display
>> does not change – it continues to show the original network.
>> However when the “Reset run” button is pressed the display clears
>> and generates a new graph.
>>
>>
>> BTW I have used the ContextBuilder only for the subcontext but have
>> kept the original ModelInitializer.agent and
>> ModelInitializer.groovy for the main context (since I do not think
>> this will make a difference)
>>
>>
>> Could someone please advise me regarding this.
>>
>>
>> Thanks in advance.
>>
>> Krishna
>>
>>
>>
>> From: Nick Collier [mailto:nic...@gm...]
>> Sent: Tuesday, 23 June 2009 1:05 a.m.
>> To: Jayawardene, Krishna
>> Cc: 'rep...@li...'
>> Subject: Re: [Repast-interest] Generating a simple network using
>> only java
>>
>>
>> This page:
>>
>>
>> http://repast.sourceforge.net/docs/reference/SIM/Network%20Projections.html
>>
>>
>> has info on building networks in Java.
>>
>>
>> Nick
>>
>>
>> On Jun 21, 2009, at 8:58 PM, Jayawardene, Krishna wrote:
>>
>>
>>
>> Hi,
>>
>>
>> I am new to Repast Simphony and would appreciate if someone could
>> provide me a small example which basically “generates” the entire
>> network (similar to the Gas Node example network) using only java,
>> i.e., without using visual agent editor /Groovy or a shapefile. The
>> Gas Node example listed in the Repast Simphony home page
>> (repast.sourceforge.net) uses the visual agent editor /Groovy.
>>
>>
>> I need to generate a new random network in each iteration of my
>> program and compare the effectiveness of certain techniques.
>>
>>
>> All I need is a link to a tutorial or a small java package which I
>> can try on my own.
>>
>>
>> Thanks in advance.
>>
>>
>> Krishna
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Are you an open source citizen? Join us for the Open Source Bridge
>> conference!
>> Portland, OR, June 17-19. Two days of sessions, one day of
>> unconference: $250.
>> Need another reason to go? 24-hour hacker lounge. Register today!
>> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org_______________________________________________
>> Repast-interest mailing list
>> Rep...@li...
>> https://lists.sourceforge.net/lists/listinfo/repast-interest
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Repast-interest mailing list
>> Rep...@li...
>> https://lists.sourceforge.net/lists/listinfo/repast-interest
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Repast-interest mailing list
>> Rep...@li...
>> https://lists.sourceforge.net/lists/listinfo/repast-interest
>
>
|