|
|||||||||
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.DataType
|
static class |
TestScript.Test.FLOAT
|
static class |
TestScript.Test.INT
|
static class |
TestScript.Test.MA
|
static class |
TestScript.Test.PA
|
static class |
TestScript.Test.STR
|
Field Summary | |
---|---|
protected TestScript.Test.DataType |
actualReturnValue
|
protected Program |
code
|
protected boolean |
completed
|
protected java.lang.String |
fileName
|
protected boolean |
ioSuccessful
|
protected TestScript.Test.DataType |
returnValue
|
protected java.util.Queue<TestScript.Test.DataType> |
rqueue
|
protected java.util.Queue<TestScript.Test.DataType> |
runReadQueue
|
protected java.util.Queue<TestScript.Test.DataType> |
runWriteQueue
|
protected TestScript |
scriptFile
|
protected boolean |
stackCleared
|
protected java.util.List<ProgramState> |
stateSteps
|
protected java.util.Queue<TestScript.Test.DataType> |
wqueue
|
Constructor Summary | |
---|---|
TestScript.Test(java.lang.String fileName)
|
Method Summary | |
---|---|
void |
addStep(ProgramState step)
|
void |
addToRead(TestScript.Test.DataType o)
|
void |
addToWrite(TestScript.Test.DataType o)
|
void |
assemble()
|
void |
clear()
|
int |
compareTo(java.lang.Object o)
|
boolean |
error()
|
TestScript.Test.DataType |
getActualReturnValue()
|
Program |
getCode()
|
java.io.File |
getFile()
|
java.lang.String |
getFileName()
|
java.util.Queue<TestScript.Test.DataType> |
getRead()
|
TestScript.Test.DataType |
getReturnValue()
|
TestScript |
getScriptFile()
|
java.util.List<ProgramState> |
getStateSteps()
|
TestScript.TestResult |
getTestResult()
|
protected TestScript.TestResult |
getTestResult(TestScript.TestResult tr)
|
java.util.Queue<TestScript.Test.DataType> |
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<TestScript.Test.DataType> collection)
|
void |
setReturnValue(TestScript.Test.DataType o)
|
void |
setScriptFile(TestScript file)
|
void |
setWrite(java.util.Collection<TestScript.Test.DataType> 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<TestScript.Test.DataType> rqueue
protected java.util.Queue<TestScript.Test.DataType> wqueue
protected java.util.Queue<TestScript.Test.DataType> runReadQueue
protected java.util.Queue<TestScript.Test.DataType> runWriteQueue
protected TestScript.Test.DataType returnValue
protected boolean completed
protected TestScript.Test.DataType actualReturnValue
protected boolean ioSuccessful
protected boolean stackCleared
protected java.util.List<ProgramState> stateSteps
protected TestScript scriptFile
protected Program code
Constructor Detail |
---|
public TestScript.Test(java.lang.String fileName)
Method Detail |
---|
public TestScript.TestResult getTestResult()
protected TestScript.TestResult getTestResult(TestScript.TestResult tr)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public void clear()
public void addToRead(TestScript.Test.DataType o)
public void addToWrite(TestScript.Test.DataType o)
public java.util.Queue<TestScript.Test.DataType> getRead()
public java.util.Queue<TestScript.Test.DataType> getWrite()
public java.lang.String getFileName()
public java.io.File getFile()
public TestScript.Test.DataType getReturnValue()
public void setFileName(java.lang.String string)
public void setReturnValue(TestScript.Test.DataType o)
public TestScript.Test.DataType getActualReturnValue()
public boolean isCompleted()
public boolean isIoSuccessful()
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<TestScript.Test.DataType> collection)
public void setWrite(java.util.Collection<TestScript.Test.DataType> 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.TestScriptException
public int readInt()
Video
readInt
in interface Video
public java.lang.String readString()
Video
readString
in interface Video
public char readChar()
Video
readChar
in interface Video
public float readFloat()
Video
readFloat
in interface Video
public void writeInt(int a)
Video
writeInt
in interface Video
a
- The integer to be writtenpublic void writeFloat(float a)
Video
writeFloat
in interface Video
a
- The float to be writtenpublic void writeChar(char a)
Video
writeChar
in interface Video
a
- The character to be writtenpublic void writeString(java.lang.String a)
Video
writeString
in interface Video
a
- The string to be written
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |