How to know it it is a batch run at initialization time?

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

How to know it it is a batch run at initialization time?

by John Tranier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I want to know at initialization time whether it is a normal or a batch mode (my goal here is to load a different logging configuration depending on the mode).
I know the method RunEnvironment.getInstance().isBatch() but the RunEnvironment is not ready at initialization time ...
Is there another primitive I may use?

Regards,
John


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest

Re: How to know it it is a batch run at initialization time?

by Tatara, Eric R. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try RunState.getInstance().getRunInfo().isBatch()

Eric Tatara, Ph.D.
Assistant Software Engineer
Center for Complex Adaptive Agent Systems Simulation
Decision and Information Sciences Division
Argonne National Laboratory

 


From: John Tranier [mailto:tranier@...]
Sent: Friday, October 30, 2009 7:18 AM
To: Repast
Subject: [Repast-interest] How to know it it is a batch run at initialization time?

Hi,

I want to know at initialization time whether it is a normal or a batch mode (my goal here is to load a different logging configuration depending on the mode).
I know the method RunEnvironment.getInstance().isBatch() but the RunEnvironment is not ready at initialization time ...
Is there another primitive I may use?

Regards,
John


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest

Re: How to know it it is a batch run at initialization time?

by John Tranier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is the same, not instantiated yet...
But finally I'm doing the test in the ContextCreator. Combined with the run number I do what I want (initialize only for the 1st run in batch mode).


Le 31 oct. 09 à 00:37, Tatara, Eric R. a écrit :

Try RunState.getInstance().getRunInfo().isBatch()

Eric Tatara, Ph.D.
Assistant Software Engineer
Center for Complex Adaptive Agent Systems Simulation
Decision and Information Sciences Division
Argonne National Laboratory

 


From: John Tranier [tranier@...]
Sent: Friday, October 30, 2009 7:18 AM
To: Repast
Subject: [Repast-interest] How to know it it is a batch run at initialization time?

Hi,

I want to know at initialization time whether it is a normal or a batch mode (my goal here is to load a different logging configuration depending on the mode).
I know the method RunEnvironment.getInstance().isBatch() but the RunEnvironment is not ready at initialization time ...
Is there another primitive I may use?

Regards,
John



--
Dr. John Tranier
Institute for Computing and Information Sciences
Utrecht University 
tel: +31 (30) 253 6761 
email: tranier@... 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest