Class Payroll

java.lang.Object
  |
  +--Payroll

public class Payroll
extends java.lang.Object

Payroll class. Manages list of actors that need to be paid


Field Summary
private  Actor[] actors
          An array contain the managed actors
private static int MAXACTOR
          The maximum allowable actors that can be managed
private  int nActors
          The number of actors currently being managed
 
Constructor Summary
Payroll()
          Default constructor for the Payroll class
 
Method Summary
 void addActor(Actor A)
          Adds an actor to the payroll.
 double calculateTotalPay()
          Caculates the weekly pay for all of the actors
static void main(java.lang.String[] args)
          A test program for the Payroll Class
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

actors

private Actor[] actors
An array contain the managed actors

nActors

private int nActors
The number of actors currently being managed

MAXACTOR

private static final int MAXACTOR
The maximum allowable actors that can be managed
Constructor Detail

Payroll

public Payroll()
Default constructor for the Payroll class
Method Detail

addActor

public void addActor(Actor A)
Adds an actor to the payroll. Will issue an error message if the payroll is currently full.
Parameters:
A - the actor to be added

calculateTotalPay

public double calculateTotalPay()
Caculates the weekly pay for all of the actors

main

public static void main(java.lang.String[] args)
A test program for the Payroll Class
Parameters:
args - Commandline arguments