JanosVM v1.0 API

edu.utah.janosvm.sys
Class VMInstance

java.lang.Object
  |
  +--edu.utah.janosvm.sys.VMInstance

public final class VMInstance
extends java.lang.Object

Functions specific to the VM as a whole.

Author:
Tim Stack, Utah Janos Team

Constructor Summary
private VMInstance()
          This is a static only object.
 
Method Summary
static void crash()
          Crash into the team boundary, this is basically a violent exit from a visit and results in a DeadTeamException being thrown in the previous team context.
static java.lang.String getName()
          Get the name of this VM instance.
static void panic(java.lang.String msg)
           
static void panic(java.lang.String msg, java.lang.Throwable th)
           
static void print(java.lang.String s)
          Print a message to the VM's console.
static void println(java.lang.String s)
          Print a message to the VM's console.
static void println(java.lang.Throwable th)
          Print a message to the VM's console.
static void shutdown()
          Shutdown the VM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait, wait0
 

Constructor Detail

VMInstance

private VMInstance()
This is a static only object.
Method Detail

crash

public static void crash()
Crash into the team boundary, this is basically a violent exit from a visit and results in a DeadTeamException being thrown in the previous team context. NOTE: This is only used for testing, its possible for the VM to do something similar so we needed a way to explicitly cause it.

panic

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

panic

public static void panic(java.lang.String msg,
                         java.lang.Throwable th)

println

public static void println(java.lang.String s)
Print a message to the VM's console. This is really only for debugging or for panic-type messages.

println

public static void println(java.lang.Throwable th)
Print a message to the VM's console. This is really only for debugging or for panic-type messages.

print

public static void print(java.lang.String s)
Print a message to the VM's console. This is really only for debugging or for panic-type messages.

shutdown

public static void shutdown()
Shutdown the VM.

getName

public static java.lang.String getName()
Get the name of this VM instance.

JanosVM v1.0 API

This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003