|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Instruction
Interface for an instruction to be executed
Method Summary | |
---|---|
void |
exec()
Executes the instruction |
java.lang.String |
getName()
Gets the name of this instruction |
Program |
getProgram()
Gets the program that this instruction is part of |
Sys |
getSystem()
Gets the System object of this instruction |
void |
setProgram(Program prog)
Sets the program that this instruction is part of |
void |
setSystem(Sys sys)
Sets the System object for this instruction |
java.lang.String |
toString()
Prints out the text that represents this SaM instruction |
Method Detail |
---|
java.lang.String toString()
toString
in class java.lang.Object
java.lang.String getName()
void setSystem(Sys sys)
sys
- The system object for this instructionSys getSystem()
void setProgram(Program prog)
prog
- The program containing this instructionProgram getProgram()
void exec() throws SystemException
SystemException
- if there is a runtime error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |