|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.engine.ActionUtilities
public class ActionUtilities
A collection of utility methods for the creation of SimActions and SimListActions. Used by ActionGroup, and Schedule in the creation of BasicActions. Under normal circumstances these methods should not be called by a user.
ActionGroup,
Schedule| Constructor Summary | |
|---|---|
ActionUtilities()
|
|
| Method Summary | |
|---|---|
static BasicAction |
createActionFor(java.lang.Object o,
java.lang.String methodName)
Creates a BasicAction whose execute method calls the specified method on the specified object. |
static BasicAction |
createActionForEach(java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
Creates a BasicAction whose execute method calls the specified method on every Object of the specified Class in the specified list. |
static BasicAction |
createActionForEach(java.util.List list,
java.lang.String methodName)
Creates a BasicAction whose execute method calls the specified method on every object in the specified list. |
static BasicAction |
createActionForEachRnd(java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
Creates a BasicAction whose execute method calls the specified method on every Object of the specified Class in the specified list. |
static BasicAction |
createActionForEachRnd(java.util.List list,
java.lang.String methodName)
Creates a BasicAction whose execute method calls the specified method on every object in the specified list. |
static java.lang.reflect.Method |
getNoArgMethod(java.lang.Class c,
java.lang.String name)
Creates a java.lang.reflect.Method from the specified Class and the the specified methodName. |
static java.lang.reflect.Method |
getNoArgMethod(java.lang.Object o,
java.lang.String name)
Creates a java.lang.reflect.Method from the specified object and the the specified methodName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionUtilities()
| Method Detail |
|---|
public static BasicAction createActionFor(java.lang.Object o,
java.lang.String methodName)
o - the object to the call the method on.methodName - the name of the method to call.
public static BasicAction createActionForEach(java.util.List list,
java.lang.String methodName)
list - the list containing the object to call the method onmethodName - the name of the method to call
public static BasicAction createActionForEachRnd(java.util.List list,
java.lang.String methodName)
list - the list containing the object to call the method onmethodName - the name of the method to call
uchicago.src.sim.util.SimUtilties
public static BasicAction createActionForEach(java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
list - the list containing the objects to call the method onsuperClass - the class to use when creating the BasicAction.methodName - the name of the method to call
uchicago.src.sim.util.SimUtilties
public static BasicAction createActionForEachRnd(java.util.List list,
java.lang.Class superClass,
java.lang.String methodName)
list - the list containing the objects to call the method onsuperClass - the class to use when creating the BasicAction.methodName - the name of the method to call
public static java.lang.reflect.Method getNoArgMethod(java.lang.Object o,
java.lang.String name)
throws java.lang.NoSuchMethodException
o - the object from which to create the Methodname - the name of the method to create
java.lang.NoSuchMethodException - if the first object in the list does not
have the specified method.
public static java.lang.reflect.Method getNoArgMethod(java.lang.Class c,
java.lang.String name)
throws java.lang.NoSuchMethodException
c - the Class from which to create the Methodname - the name of the method to create
java.lang.NoSuchMethodException - if the first object in the list does not have
the specified method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||