context builder problem

View: New views
2 Messages — Rating Filter:   Alert me  

context builder problem

by Chen Liang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all:
I'm transferring from Repast J to Repast S (great tool!) and now undergoing the learning curve. I'd like to know if a context builder runs at the start of the program. I've written my own ContextCreator class and a PersonContext class, with a Person class as agents, but when I run the simulation, it seems that the ContextCreator is not ran (no console output I've written), and I can still get the agents on the screen. How could this happen? Plus, do I need to write in the model.score that there is a ContextCreator? I looked at Nick Malleson's tutorial of RepastCity and there is no linkage between ContextCreator and the rest of the model in the score file.
So could anybody throw some light on that? Thank you all very much!

Best,

--
___________________________

CHEN Liang
School of Architecture
The Chinese University of Hong Kong
Shatin, N.T.
Hong Kong SAR, China
tel +852 2609-6597


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest

Re: context builder problem

by Nick Collier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You need to specify your ContextCreator class as the data loader.  
Right click on Data Loaders in the scenario tree, then set data loader  
-> a specific java class.

Nick

On Nov 10, 2009, at 6:51 AM, Chen Liang wrote:

> Dear all:
> I'm transferring from Repast J to Repast S (great tool!) and now  
> undergoing the learning curve. I'd like to know if a context builder  
> runs at the start of the program. I've written my own ContextCreator  
> class and a PersonContext class, with a Person class as agents, but  
> when I run the simulation, it seems that the ContextCreator is not  
> ran (no console output I've written), and I can still get the agents  
> on the screen. How could this happen? Plus, do I need to write in  
> the model.score that there is a ContextCreator? I looked at Nick  
> Malleson's tutorial of RepastCity and there is no linkage between  
> ContextCreator and the rest of the model in the score file.
> So could anybody throw some light on that? Thank you all very much!
>
> Best,
>
> --
> ___________________________
>
> CHEN Liang
> School of Architecture
> The Chinese University of Hong Kong
> Shatin, N.T.
> Hong Kong SAR, China
> tel +852 2609-6597
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july_______________________________________________
> Repast-interest mailing list
> Repast-interest@...
> https://lists.sourceforge.net/lists/listinfo/repast-interest


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest