simulation proxy extra functionality #2

Merged
4 commits merged into from Nov 23, 2010

Conversation

Projects
None yet
2 participants
@jennyhasahat
Contributor

jennyhasahat commented Sep 29, 2010

Hi,

I needed to be able to read the simulated time from the simulation and nothing seemed to be able to do that, so I added some functionality to SimulationProxy::GetProperty so that you can retrieve the simulation time.
It might be useful to others, so I'm submitting the new stuff for inclusion in the next release.

Jenny

Jenny and others added some commits Sep 28, 2010

Jon Jon
Modified simulationProxy GetProperty so you can also get the simulation
time that's displayed on the GUI. Could be handy?
Jon Jon
Included code to check that the supplied data structure for the
simulation time is big enough to store a uint64_t.
Jenny
Merge commit 'upstream/master'
Fixed conflicts between my stuff and old stuff.
Conflicts:
	libstageplugin/p_simulation.cc
@rtv

This comment has been minimized.

Show comment
Hide comment
@rtv

rtv Nov 23, 2010

Owner

I pulled this today and tweaked it just a bit before committing to my master. I changed the name of the property from "simtime" or "sim_time" to simply "time", and simplified the code a little. It might have been a better strategy to modify Player's sim interface to include this functionality, but that's a little more complex. This will work for anyone who really needs it.

Owner

rtv commented Nov 23, 2010

I pulled this today and tweaked it just a bit before committing to my master. I changed the name of the property from "simtime" or "sim_time" to simply "time", and simplified the code a little. It might have been a better strategy to modify Player's sim interface to include this functionality, but that's a little more complex. This will work for anyone who really needs it.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment