jist.minisim
Class sleepblock

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

public class sleepblock
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: sleepblock.java,v 1.1 2005/02/25 04:43:58 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

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

Constructor Detail

sleepblock

public sleepblock()
Initialize sleepblock 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

hello

public void hello(java.lang.String msg)

nonblock

public void nonblock()

block

public void block()