jist.minisim
Class proxy.entity

java.lang.Object
  extended by jist.minisim.proxy.entity
All Implemented Interfaces:
proxy.entityInterface, JistAPI.Proxiable, JistAPI.Timeless
Enclosing class:
proxy

public static final class proxy.entity
extends java.lang.Object
implements proxy.entityInterface

Benchmark proxy entity.


Field Summary
private  proxy.entityInterface e
          entity proxy.
private  long endTime
          benchmark end time.
private  int mode
          benchmark type.
private  long nwarm
          number of warm-up proxied events.
private  long startTime
          benchmark start time.
private  long total
          total number of benchmark proxied events.
 
Constructor Summary
proxy.entity(int mode, long nevents, long nwarm)
          Create new proxy benchmark entity.
 
Method Summary
 void finish()
          Measure finish time.
 void go(proxy.entityInterface e)
          Perform benchmark.
 void operation_double(double d)
          Proxied event with primitive double parameter.
 void operation_int(int i)
          Proxied event with primitive integer parameter.
 void operation_null()
          Proxied event with no parameters.
 void operation_string(java.lang.String s)
          Proxied event with String parameter.
 void start()
          Measure start time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mode

private final int mode
benchmark type.


total

private final long total
total number of benchmark proxied events.


nwarm

private final long nwarm
number of warm-up proxied events.


startTime

private long startTime
benchmark start time.


endTime

private long endTime
benchmark end time.


e

private proxy.entityInterface e
entity proxy.

Constructor Detail

proxy.entity

public proxy.entity(int mode,
                    long nevents,
                    long nwarm)
Create new proxy benchmark entity.

Parameters:
mode - benchmark type
nevents - number of benchmark proxied events
nwarm - number of warm-up proxied events
Method Detail

go

public void go(proxy.entityInterface e)
Perform benchmark.

Parameters:
e - entity

start

public void start()
Measure start time.

Specified by:
start in interface proxy.entityInterface

finish

public void finish()
Measure finish time.

Specified by:
finish in interface proxy.entityInterface

operation_null

public void operation_null()
Proxied event with no parameters.

Specified by:
operation_null in interface proxy.entityInterface

operation_int

public void operation_int(int i)
Proxied event with primitive integer parameter.

Specified by:
operation_int in interface proxy.entityInterface
Parameters:
i - dummy int

operation_double

public void operation_double(double d)
Proxied event with primitive double parameter.

Specified by:
operation_double in interface proxy.entityInterface
Parameters:
d - dummy double

operation_string

public void operation_string(java.lang.String s)
Proxied event with String parameter.

Specified by:
operation_string in interface proxy.entityInterface
Parameters:
s - dummy string