edu.jhu.cnds.FrugalDemo
Class Demo

java.lang.Object
  |
  +--edu.jhu.cnds.FrugalDemo.Demo

public class Demo
extends java.lang.Object
implements java.lang.Runnable

Demonstrates the Frugal package. This package is a distributed simulation of 5 different resource allocation strategies.

Options:

Version:
2.0
Author:
R. Sean Borgstrom

-v # Graphically display # (1-5) strategies. Default: No graphics.
-r # Run simulations on # (1-5) Frugal Resources at once. Default: Run locally.
Constructor Summary
Demo()
          This constructor does nothing at this time.
 
Method Summary
static void main(java.lang.String[] args)
          Starts the simulation.
 java.lang.String nameSim(int ss)
          Names a resource allocation strategy.
 void run()
          Runs a thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Demo

public Demo()
This constructor does nothing at this time.
Method Detail

main

public static void main(java.lang.String[] args)
Starts the simulation.
Parameters:
args - Parameters for the simulation: how many graphical displays to show, how many Frugal Resources to run on, and whether to impose real-time constraints.

run

public void run()
Runs a thread.
Specified by:
run in interface java.lang.Runnable

nameSim

public java.lang.String nameSim(int ss)
Names a resource allocation strategy.
Parameters:
ss - The strategy number.
Returns:
A String naming the strategy.