Package mars.mips.instructions.syscalls
Class SyscallRandSeed
java.lang.Object
mars.mips.instructions.syscalls.AbstractSyscall
mars.mips.instructions.syscalls.SyscallRandSeed
- All Implemented Interfaces:
Syscall
Service to set seed for the underlying Java pseudorandom number generator. No values are returned.
-
Constructor Summary
ConstructorsConstructorDescriptionBuild an instance of the syscall with its default service number and name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
simulate
(BasicStatement statement) Set the seed of the underlying Java pseudorandom number generator.Methods inherited from class mars.mips.instructions.syscalls.AbstractSyscall
getName, getNumber, setNumber
-
Constructor Details
-
SyscallRandSeed
public SyscallRandSeed()Build an instance of the syscall with its default service number and name.
-
-
Method Details
-
simulate
Set the seed of the underlying Java pseudorandom number generator.- Specified by:
simulate
in interfaceSyscall
- Specified by:
simulate
in classAbstractSyscall
- Parameters:
statement
- BasicStatement object for this syscall instruction.- Throws:
SimulatorException
-