ann.util.Controller -- a module class containing class wide methods used to control execution.


public static void pause(double seconds)

pause(n) pauses program execution for n seconds.

Receive: seconds, a double value

Precondition: seconds > 0.

Postcondition: secconds time has elapsed since invocation.


public static void fatal(String methodName, String diagnostic)

fatal(methodName, diagnostic) displays a diagnostic error message for methodName and terminates execution.

Receive: methodName, the name of the method where the error occurred, and diagnostic, a message explaining the problem

Output: an error message containing methodName and diagnostic

Postcondition: Execution has been terminated.


Back to the package documentation index

Back to the Introduction

Copyright 2000 by Prentice Hall. All rights reserved.