CSC407/ECE450 Assignment 1b Sample Solution

plan
Class Plan

java.lang.Object
  |
  +--plan.Plan

public class Plan
extends java.lang.Object

This class is used to parse the command line and drive the program.


Field Summary
private static double JUST_MISSED_RATIO
          Features fitting under this ratio of resourcing are considered "just-missed".
 
Constructor Summary
private Plan()
          This class is entirely static.
 
Method Summary
private static void dieUsage(java.lang.String msg)
          Print an error message and a usage message to stderr, and die with exit code -1
static void main(java.lang.String[] argv)
          Main program.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

JUST_MISSED_RATIO

private static final double JUST_MISSED_RATIO
Features fitting under this ratio of resourcing are considered "just-missed".
Constructor Detail

Plan

private Plan()
This class is entirely static. Ensure no objects of this class get created.
Method Detail

main

public static void main(java.lang.String[] argv)
Main program. Expects three arguments:
<feature_file.xml> <product_name> <person-days-available>
Any errors result in an error message and a usage message to stderr and termination with an exit code of -1. Correct execution will result in an exit code of 0.

dieUsage

private static void dieUsage(java.lang.String msg)
Print an error message and a usage message to stderr, and die with exit code -1
Parameters:
msg - the error message to print

CSC407/ECE450 Assignment 1b Sample Solution