Class MethodStep

A Steppable which calls an underlying method using Java's reflection system. The underlying method can either have no arguments
or have one argumen (SimState), and is specified by its name as a String.

You can use MethodStep to call methods on classes that aren't Steppables. For example, if you have an object myObject
and wish to submit both its foo and bar methods (no arguments) to be called at various times when the Schedule
sees fit, you might do this:

MethodStep can also be called on methods which expect to be passed in the Steppable's SimState argument. When
the MethodStep is called, it passes its argument to them. You do this by adding a true to the constructor:

This will call the baz(SimState) method and quux(SimState) method to be called at the appropriate times on myObject.

This method is mostly to help in ease of porting: but it's not good Java. Reflection is slow and violates all sorts of design
contracts -- generally speaking, you should use anonymous Steppables intead. For example, the examples above could have instead been
written this way: