|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cornell.cs.sam.ui.TestScript.Test
public static class TestScript.Test
Represents one single test
| Nested Class Summary | |
|---|---|
static class |
TestScript.Test.CH
|
static class |
TestScript.Test.FLOAT
|
static class |
TestScript.Test.INT
|
static class |
TestScript.Test.MA
|
static class |
TestScript.Test.PA
|
| Field Summary | |
|---|---|
protected java.lang.Object |
actualReturnValue
|
protected Program |
code
|
protected boolean |
completed
|
protected boolean |
delete
|
protected java.lang.String |
fileName
|
protected boolean |
ioSuccessful
|
protected java.lang.Object |
returnValue
|
protected java.util.Queue<java.lang.Object> |
rqueue
|
protected TestScript |
scriptFile
|
protected boolean |
stackCleared
|
protected java.util.List<ProgramState> |
stateSteps
|
protected java.util.Queue<java.lang.Object> |
wqueue
|
| Constructor Summary | |
|---|---|
TestScript.Test(java.lang.String fileName)
|
|
| Method Summary | |
|---|---|
void |
addStep(ProgramState step)
|
void |
addToRead(java.lang.Object o)
|
void |
addToWrite(java.lang.Object o)
|
void |
assemble()
|
void |
clear()
|
void |
delete()
|
boolean |
error()
|
java.lang.Object |
getActualReturnValue()
|
Program |
getCode()
|
java.io.File |
getFile()
|
java.lang.String |
getFileName()
|
java.util.Queue<java.lang.Object> |
getRead()
|
java.lang.Object |
getReturnValue()
|
TestScript |
getScriptFile()
|
java.util.List<ProgramState> |
getStateSteps()
|
java.util.Queue<java.lang.Object> |
getWrite()
|
boolean |
isCompleted()
|
boolean |
isIoSuccessful()
|
boolean |
isStackCleared()
|
char |
readChar()
Request character input from the video implementation |
float |
readFloat()
Request floating point input from the video implementation |
int |
readInt()
Requests integer input from the video implementation |
java.lang.String |
readString()
Request String input from the video implementation |
void |
resetState()
|
int |
run(Sys sys,
SamThread thread)
|
void |
setFileName(java.lang.String string)
|
void |
setRead(java.util.Collection<?> collection)
|
void |
setReturnValue(java.lang.Object o)
|
void |
setScriptFile(TestScript file)
|
void |
setWrite(java.util.Collection<?> collection)
|
void |
writeChar(char a)
Writes character output to the video implementation |
void |
writeFloat(float a)
Writes floating point output to the video implementation |
void |
writeInt(int a)
Writes integer output to the video implementation |
void |
writeString(java.lang.String a)
Writes string output to the video implementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String fileName
protected java.util.Queue<java.lang.Object> rqueue
protected java.util.Queue<java.lang.Object> wqueue
protected java.lang.Object returnValue
protected boolean completed
protected java.lang.Object actualReturnValue
protected boolean ioSuccessful
protected boolean stackCleared
protected boolean delete
protected java.util.List<ProgramState> stateSteps
protected TestScript scriptFile
protected Program code
| Constructor Detail |
|---|
public TestScript.Test(java.lang.String fileName)
| Method Detail |
|---|
public void clear()
public void addToRead(java.lang.Object o)
public void addToWrite(java.lang.Object o)
public java.util.Queue<java.lang.Object> getRead()
public java.util.Queue<java.lang.Object> getWrite()
public java.lang.String getFileName()
public java.io.File getFile()
public java.lang.Object getReturnValue()
public void setFileName(java.lang.String string)
public void setReturnValue(java.lang.Object o)
public java.lang.Object getActualReturnValue()
public boolean isCompleted()
public boolean isIoSuccessful()
public void delete()
public boolean error()
public boolean isStackCleared()
public java.util.List<ProgramState> getStateSteps()
public void addStep(ProgramState step)
public void resetState()
public TestScript getScriptFile()
public void setScriptFile(TestScript file)
public void setRead(java.util.Collection<?> collection)
public void setWrite(java.util.Collection<?> collection)
public void assemble()
throws TestScript.TestScriptException
TestScript.TestScriptException
public Program getCode()
throws TestScript.TestScriptException
TestScript.TestScriptException
public int run(Sys sys,
SamThread thread)
throws TestScript.TestScriptException
TestScript.TestScriptExceptionpublic int readInt()
Video
readInt in interface Videopublic java.lang.String readString()
Video
readString in interface Videopublic char readChar()
Video
readChar in interface Videopublic float readFloat()
Video
readFloat in interface Videopublic void writeInt(int a)
Video
writeInt in interface Videoa - The integer to be writtenpublic void writeFloat(float a)
Video
writeFloat in interface Videoa - The float to be writtenpublic void writeChar(char a)
Video
writeChar in interface Videoa - The character to be writtenpublic void writeString(java.lang.String a)
Video
writeString in interface Videoa - The string to be written
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||