hades.simulator
Class SimEvent1164

java.lang.Object
  extended byhades.simulator.SimEvent
      extended byhades.simulator.SimEvent1164
All Implemented Interfaces:
java.io.Serializable

public class SimEvent1164
extends SimEvent
implements java.io.Serializable

SimEvent1164 - a Hades simulation event for StdLogic1164 values. This class is written for maximum simulation performance, and without concern for readability. SimEvent1164 maintains an internal pool (stack) of pre-created simulation event objects, and tries to allocate new event objects out of this pool - to spare the garbage collector of finding a few dozen free event objects in a background of some 100000 long-lived gates and other objects. If possible, use one of the createNewSimEvent1164() methods instead of calling the constructors directly, to allow for efficient SimEvent1164 recycling.

See Also:
Serialized Form

Field Summary
static Const1164[] __const1164
           
static boolean enable_recycling
           
static int STACK_SIZE
           
static int STACK_SIZE_1
           
 
Fields inherited from class hades.simulator.SimEvent
arg, id, source, target, targetPort, time
 
Constructor Summary
SimEvent1164(Simulatable target, double time, java.lang.Object arg, java.lang.Object source)
           
SimEvent1164(Simulatable target, double time, StdLogic1164 arg, java.lang.Object source)
           
 
Method Summary
static void clearRecycleStack()
           
static SimEvent1164 createNewSimEvent(Simulatable target, double time, StdLogic1164 arg, java.lang.Object source)
           
static long getNumberOfAvailableRecycledSimEvents()
           
static long getNumberOfRecycledSimEvents()
           
static long getNumberOfSimEvents()
           
static void msg(java.lang.String s)
           
 void recycle()
           
 java.lang.String toString()
          toString() - the usual info method
 
Methods inherited from class hades.simulator.SimEvent
createNewSimEvent, createNewSimEvent, evaluate, getArg, getDebug, getSource, getTargetPort, getTime, setDebug, setTargetPort, toShortString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__const1164

public static final Const1164[] __const1164

enable_recycling

public static boolean enable_recycling

STACK_SIZE

public static int STACK_SIZE

STACK_SIZE_1

public static int STACK_SIZE_1
Constructor Detail

SimEvent1164

public SimEvent1164(Simulatable target,
                    double time,
                    StdLogic1164 arg,
                    java.lang.Object source)

SimEvent1164

public SimEvent1164(Simulatable target,
                    double time,
                    java.lang.Object arg,
                    java.lang.Object source)
Method Detail

createNewSimEvent

public static SimEvent1164 createNewSimEvent(Simulatable target,
                                             double time,
                                             StdLogic1164 arg,
                                             java.lang.Object source)

recycle

public void recycle()
Overrides:
recycle in class SimEvent

getNumberOfAvailableRecycledSimEvents

public static long getNumberOfAvailableRecycledSimEvents()

getNumberOfRecycledSimEvents

public static long getNumberOfRecycledSimEvents()

getNumberOfSimEvents

public static long getNumberOfSimEvents()

clearRecycleStack

public static void clearRecycleStack()

msg

public static void msg(java.lang.String s)

toString

public java.lang.String toString()
toString() - the usual info method

Overrides:
toString in class SimEvent