sim.app.Project
Class Student

java.lang.Object
  extended by sim.app.Project.Student
All Implemented Interfaces:
java.io.Serializable, sim.engine.Steppable

public class Student
extends java.lang.Object
implements sim.engine.Steppable

See Also:
Serialized Form

Field Summary
private  int breakLength
           
private  int classLength
           
private  int dx
           
private  int dy
           
private  int myloc
           
 int myyear
           
 int[] schedule
           
private  int status
           
private  int stepSize
           
 
Constructor Summary
Student(int loc, int[] sche, int year)
           
 
Method Summary
 int distance(int a, int b, int c, int d)
           
 int getStatus(sim.engine.SimState state)
           
 boolean inClassroom(sim.app.Project.Floor tut)
           
 boolean loser(sim.app.Project.Floor tut)
           
 void step(sim.engine.SimState state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myyear

public int myyear

dx

private int dx

dy

private int dy

classLength

private int classLength

breakLength

private int breakLength

status

private int status

myloc

private int myloc

stepSize

private int stepSize

schedule

public int[] schedule
Constructor Detail

Student

public Student(int loc,
               int[] sche,
               int year)
Method Detail

inClassroom

public boolean inClassroom(sim.app.Project.Floor tut)

getStatus

public int getStatus(sim.engine.SimState state)

distance

public int distance(int a,
                    int b,
                    int c,
                    int d)

loser

public boolean loser(sim.app.Project.Floor tut)

step

public void step(sim.engine.SimState state)
Specified by:
step in interface sim.engine.Steppable