edu.cmu.emulator.event
Class MethodCallFarm

java.lang.Object
  extended by edu.cmu.emulator.event.MethodCallFarm

public class MethodCallFarm
extends Object

MethodCallFarm is meant to greatly reduce the amount of object creation and deletion that occurs during simulation. Ordinarily this sort of thing isn't a good idea, but since simulation performance is critical, this should help things out. Use of this class by users outside of core system code is strongly discouraged.


Field Summary
private static int[] FARM_SIZE
           
private static int MAX_ARGS
           
private static MethodCall[][] methodCalls
           
private static int[] numAvailable
           
 
Constructor Summary
MethodCallFarm()
           
 
Method Summary
static void deleteMethodCall(MethodCall methodCall)
           
private static void displayAvailable()
           
private static void displayAvailableToErr()
           
static MethodCall newMethodCall(Object targetObj, long time, Method method)
           
static MethodCall newMethodCall(Object targetObj, long time, Method method, Object[] args, Class[] argClasses)
           
static MethodCall newMethodCall(Object targetObj, long time, Method method, Object arg0, Class[] argClasses)
           
static MethodCall newMethodCall(Object targetObj, long time, Method method, Object arg0, Object arg1, Class[] argClasses)
           
static MethodCall newMethodCall(Object targetObj, long time, Method method, Object arg0, Object arg1, Object arg2, Class[] argClasses)
           
static MethodCall newMethodCall(Object targetObj, long time, Method method, Object arg0, Object arg1, Object arg2, Object arg3, Class[] argClasses)
           
static MethodCall newMethodCall(Object targetObj, long time, String methodName, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodCalls

private static MethodCall[][] methodCalls

numAvailable

private static int[] numAvailable

FARM_SIZE

private static final int[] FARM_SIZE

MAX_ARGS

private static final int MAX_ARGS
See Also:
Constant Field Values
Constructor Detail

MethodCallFarm

public MethodCallFarm()
Method Detail

newMethodCall

public static final MethodCall newMethodCall(Object targetObj,
                                             long time,
                                             String methodName,
                                             Object[] args)

displayAvailable

private static void displayAvailable()

displayAvailableToErr

private static void displayAvailableToErr()

deleteMethodCall

public static final void deleteMethodCall(MethodCall methodCall)

newMethodCall

public static final MethodCall newMethodCall(Object targetObj,
                                             long time,
                                             Method method)

newMethodCall

public static final MethodCall newMethodCall(Object targetObj,
                                             long time,
                                             Method method,
                                             Object[] args,
                                             Class[] argClasses)

newMethodCall

public static final MethodCall newMethodCall(Object targetObj,
                                             long time,
                                             Method method,
                                             Object arg0,
                                             Class[] argClasses)

newMethodCall

public static final MethodCall newMethodCall(Object targetObj,
                                             long time,
                                             Method method,
                                             Object arg0,
                                             Object arg1,
                                             Class[] argClasses)

newMethodCall

public static final MethodCall newMethodCall(Object targetObj,
                                             long time,
                                             Method method,
                                             Object arg0,
                                             Object arg1,
                                             Object arg2,
                                             Class[] argClasses)

newMethodCall

public static final MethodCall newMethodCall(Object targetObj,
                                             long time,
                                             Method method,
                                             Object arg0,
                                             Object arg1,
                                             Object arg2,
                                             Object arg3,
                                             Class[] argClasses)


Copyright © 2013. All Rights Reserved.