|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmars.simulator.SimulatorNotice
public class SimulatorNotice
Object provided to Observers of the Simulator. They are notified at important phases of the runtime simulator, such as start and stop of simulation.
Field Summary | |
---|---|
static int |
SIMULATOR_START
|
static int |
SIMULATOR_STOP
|
Constructor Summary | |
---|---|
SimulatorNotice(int action,
int maxSteps,
double runSpeed,
int programCounter)
Constructor will be called only within this package, so assume address and length are in valid ranges. |
Method Summary | |
---|---|
int |
getAction()
Fetch the memory address that was accessed. |
int |
getMaxSteps()
Fetch the length in bytes of the access operation (4,2,1). |
int |
getProgramCounter()
Fetch the value of the access operation (the value read or written). |
double |
getRunSpeed()
Fetch the value of the access operation (the value read or written). |
String |
toString()
String representation indicates access type, address and length in bytes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SIMULATOR_START
public static final int SIMULATOR_STOP
Constructor Detail |
---|
public SimulatorNotice(int action, int maxSteps, double runSpeed, int programCounter)
Method Detail |
---|
public int getAction()
public int getMaxSteps()
public double getRunSpeed()
public int getProgramCounter()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |