jist.minisim
Class hello_loop

java.lang.Object
  extended by jist.minisim.hello_loop
All Implemented Interfaces:
JistAPI.Entity, JistAPI.Timeless

public class hello_loop
extends java.lang.Object
implements JistAPI.Entity

A slightly more sophisticated Hello World of simulations to show the difference between blocking and non-blocking events.

Since:
JIST1.0
Version:
$Id: hello_loop.java,v 1.4 2004/04/06 16:07:42 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Constructor Summary
hello_loop()
          Initialize hello_loop entity.
 
Method Summary
 void HelloWorld(java.lang.String msg)
          A non-blocking hello event.
 void HelloWorld1(java.lang.String msg)
          non-blocking event that schedules 10 hellos.
 void HelloWorld2(java.lang.String msg)
          blocking event that schedules 10 hellos.
static void main(java.lang.String[] args)
          Program entry point: show difference between blocking and non-blocking events with an extended "hello world!"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

hello_loop

public hello_loop()
Initialize hello_loop entity.

Method Detail

main

public static void main(java.lang.String[] args)
Program entry point: show difference between blocking and non-blocking events with an extended "hello world!" example.

Parameters:
args - command-line parameters

HelloWorld

public void HelloWorld(java.lang.String msg)
A non-blocking hello event.

Parameters:
msg - message to display with hello

HelloWorld1

public void HelloWorld1(java.lang.String msg)
non-blocking event that schedules 10 hellos.

Parameters:
msg - message to display with hello

HelloWorld2

public void HelloWorld2(java.lang.String msg)
                 throws JistAPI.Continuation
blocking event that schedules 10 hellos.

Parameters:
msg - message to display with hello
Throws:
JistAPI.Continuation - never; blocking event