sim.app.Project
Class Student
java.lang.Object
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
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 |
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
Student
public Student(int loc,
int[] sche,
int year)
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