jist.runtime
Class JistAPI_Impl

java.lang.Object
  extended by jist.runtime.JistAPI
      extended by jist.runtime.JistAPI_Impl

public final class JistAPI_Impl
extends JistAPI

The concrete implementation of the JistAPI application interface stub.

Since:
JIST1.0
Version:
$Id: JistAPI_Impl.java,v 1.44 2005/02/25 04:43:58 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Nested Class Summary
 
Nested classes/interfaces inherited from class jist.runtime.JistAPI
JistAPI.Continuable, JistAPI.Continuation, JistAPI.CustomRewriter, JistAPI.DoNotRewrite, JistAPI.Entity, JistAPI.Logger, JistAPI.Proxiable, JistAPI.Timeless
 
Field Summary
static java.lang.String INVALID_CALL_MSG
          Invalid system call error message.
static java.lang.reflect.Method method_callStaticAt
          Method stub field for invoking a static method at some simulation time.
static java.lang.reflect.Method method_createChannel
          Method stub field for creating blocking channel.
static java.lang.reflect.Method method_end
          Method stub field for ending simulation now.
static java.lang.reflect.Method method_endAt
          Method stub field for ending simulation at given time.
static java.lang.reflect.Method method_getTime
          Method stub field for retrieving simulation time.
static java.lang.reflect.Method method_getTimeString
          Method stub field for getting simulation time string.
static java.lang.reflect.Method method_installRewrite
          Method stub field for installing a new rewriting step at top of chain.
static java.lang.reflect.Method method_isEntity
          Method stub field for determining whether a reference is an entity reference.
static java.lang.reflect.Method method_log
          Method stub field for logging.
static java.lang.reflect.Method method_proxy
          Method stub field for creating proxy entity.
static java.lang.reflect.Method method_proxyMany
          Method stub field for creating proxy entity with multiple interfaces.
static java.lang.reflect.Method method_ref
          Method stub field for converting an entity into an entity reference.
static java.lang.reflect.Method method_run
          Method stub field for bootstrapping a new simulation.
static java.lang.reflect.Method method_runAt
          Method stub field for running a Runnable object at some simulation time.
static java.lang.reflect.Method method_setLog
          Method stub field for setting logger.
static java.lang.reflect.Method method_setSimUnits
          Method stub field for setting simulation time units.
static java.lang.reflect.Method method_sleep
          Method stub field for advancing simulation time.
static java.lang.reflect.Method method_sleepBlock
          Method stub field for advancing simulation time (with blocking).
static java.lang.reflect.Method method_sleepBlockAPI
          API Method stub field for advancing simulation time (with blocking).
static java.lang.reflect.Method method_toString
          Method stub field for toString method.
 
Fields inherited from class jist.runtime.JistAPI
END, RUN_BSH, RUN_CLASS, RUN_JPY, THIS
 
Constructor Summary
JistAPI_Impl()
           
 
Method Summary
static void callStaticAt(java.lang.reflect.Method meth, java.lang.Object[] params, long time)
           
static Channel createChannel()
           
static EntityRef createChannelImpl()
          Actual implementation of createChannel method; returns new Channel Entity reference.
static void end()
           
static void endAt(long time)
           
static long getTime()
           
static java.lang.String getTimeString()
           
static void installRewrite(ClassTraversal.Visitor rewrite)
           
static boolean isEntity(java.lang.Object o)
           
static void log(java.lang.String s)
           
static java.lang.Object proxy(java.lang.Object proxyTarget, java.lang.Class proxyInterface)
           
static java.lang.Object proxyMany(java.lang.Object proxyTarget, java.lang.Class[] proxyInterface)
           
static java.lang.Object ref(java.lang.Object o)
           
static void run(int type, java.lang.String name, java.lang.String[] args, java.lang.Object properties)
           
static void runAt(java.lang.Runnable r, long time)
           
static void setLog(JistAPI.Logger logger)
           
static void setSimUnits(long ticks, java.lang.String name)
           
static void sleep(long i)
           
static void sleepBlock(long i)
           
static java.lang.String toString(java.lang.Object o)
           
 
Methods inherited from class jist.runtime.JistAPI
installRewrite, ref
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_CALL_MSG

public static final java.lang.String INVALID_CALL_MSG
Invalid system call error message.

See Also:
Constant Field Values

method_getTime

public static java.lang.reflect.Method method_getTime
Method stub field for retrieving simulation time.


method_sleep

public static java.lang.reflect.Method method_sleep
Method stub field for advancing simulation time.


method_sleepBlock

public static java.lang.reflect.Method method_sleepBlock
Method stub field for advancing simulation time (with blocking).


method_sleepBlockAPI

public static java.lang.reflect.Method method_sleepBlockAPI
API Method stub field for advancing simulation time (with blocking).


method_ref

public static java.lang.reflect.Method method_ref
Method stub field for converting an entity into an entity reference.


method_end

public static java.lang.reflect.Method method_end
Method stub field for ending simulation now.


method_endAt

public static java.lang.reflect.Method method_endAt
Method stub field for ending simulation at given time.


method_callStaticAt

public static java.lang.reflect.Method method_callStaticAt
Method stub field for invoking a static method at some simulation time.


method_runAt

public static java.lang.reflect.Method method_runAt
Method stub field for running a Runnable object at some simulation time.


method_proxy

public static java.lang.reflect.Method method_proxy
Method stub field for creating proxy entity.


method_proxyMany

public static java.lang.reflect.Method method_proxyMany
Method stub field for creating proxy entity with multiple interfaces.


method_createChannel

public static java.lang.reflect.Method method_createChannel
Method stub field for creating blocking channel.


method_installRewrite

public static java.lang.reflect.Method method_installRewrite
Method stub field for installing a new rewriting step at top of chain.


method_run

public static java.lang.reflect.Method method_run
Method stub field for bootstrapping a new simulation.


method_setSimUnits

public static java.lang.reflect.Method method_setSimUnits
Method stub field for setting simulation time units.


method_getTimeString

public static java.lang.reflect.Method method_getTimeString
Method stub field for getting simulation time string.


method_setLog

public static java.lang.reflect.Method method_setLog
Method stub field for setting logger.


method_log

public static java.lang.reflect.Method method_log
Method stub field for logging.


method_isEntity

public static java.lang.reflect.Method method_isEntity
Method stub field for determining whether a reference is an entity reference.


method_toString

public static java.lang.reflect.Method method_toString
Method stub field for toString method.

Constructor Detail

JistAPI_Impl

public JistAPI_Impl()
Method Detail

getTime

public static long getTime()
See Also:
JistAPI

sleep

public static void sleep(long i)
See Also:
JistAPI

sleepBlock

public static void sleepBlock(long i)
                       throws JistAPI.Continuable
Throws:
JistAPI.Continuable
See Also:
JistAPI

ref

public static java.lang.Object ref(java.lang.Object o)
See Also:
JistAPI

end

public static void end()
See Also:
JistAPI

endAt

public static void endAt(long time)
See Also:
JistAPI

callStaticAt

public static void callStaticAt(java.lang.reflect.Method meth,
                                java.lang.Object[] params,
                                long time)
See Also:
JistAPI

runAt

public static void runAt(java.lang.Runnable r,
                         long time)
See Also:
JistAPI

proxy

public static java.lang.Object proxy(java.lang.Object proxyTarget,
                                     java.lang.Class proxyInterface)
See Also:
JistAPI

proxyMany

public static java.lang.Object proxyMany(java.lang.Object proxyTarget,
                                         java.lang.Class[] proxyInterface)
See Also:
JistAPI

createChannel

public static Channel createChannel()
See Also:
JistAPI

createChannelImpl

public static EntityRef createChannelImpl()
Actual implementation of createChannel method; returns new Channel Entity reference.

Returns:
entity reference of new Channel Entity.

installRewrite

public static void installRewrite(ClassTraversal.Visitor rewrite)
See Also:
JistAPI

run

public static void run(int type,
                       java.lang.String name,
                       java.lang.String[] args,
                       java.lang.Object properties)
See Also:
JistAPI

setSimUnits

public static void setSimUnits(long ticks,
                               java.lang.String name)
See Also:
JistAPI

getTimeString

public static java.lang.String getTimeString()
See Also:
JistAPI

setLog

public static void setLog(JistAPI.Logger logger)
See Also:
JistAPI

log

public static void log(java.lang.String s)
See Also:
JistAPI

isEntity

public static boolean isEntity(java.lang.Object o)
See Also:
JistAPI

toString

public static java.lang.String toString(java.lang.Object o)
See Also:
JistAPI