edu.illinois.imunit
Class IMUnit

java.lang.Object
  extended by edu.illinois.imunit.IMUnit

public class IMUnit
extends java.lang.Object

Provides the API for maintaining schedule state and enforcing schedules.

Author:
Vilas Jagannath (vbangal2@illinois.edu),
Milos Gligoric (gliga@illinois.edu),
Dongyun Jin (djin3@illinois.edu),
Qingzhou Luo (qluo2@illinois.edu).

Constructor Summary
IMUnit()
           
 
Method Summary
static void clearSchedule()
          Clears the current schedule state.
static void fireEvent(java.lang.String eventName)
          Method called to notify the occurrence of an event.
static java.lang.String getSchedule()
          Returns the current schedule's name.
static boolean isSchedule(java.lang.String name)
          Returns true if the given name is the name of the current schedule, false otherwise.
static void setSchedule(java.lang.String name, Orderings orderings)
          Sets the current schedule state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IMUnit

public IMUnit()
Method Detail

getSchedule

public static java.lang.String getSchedule()
Returns the current schedule's name.

Returns:
the current schedule's name.

isSchedule

public static boolean isSchedule(java.lang.String name)
Returns true if the given name is the name of the current schedule, false otherwise.

Parameters:
name -
Returns:
true if the given name is the name of the current schedule, false otherwise.

setSchedule

public static void setSchedule(java.lang.String name,
                               Orderings orderings)
Sets the current schedule state. This method is called by IMUnitRunner for each test/schedule pair.

Parameters:
name -
orderings -

clearSchedule

public static void clearSchedule()
Clears the current schedule state.


fireEvent

public static void fireEvent(java.lang.String eventName)
Method called to notify the occurrence of an event. This method contains the logic for enforcing the current schedule. If the fired event needs to occur after some events, the current thread is blocked until those events have occurred.

Parameters:
eventName -


Copyright © 2011 University of Illinois at Urbana-Champaign. All Rights Reserved.