adevs
|
Public Types | |
enum | EmulatorMode { PRECISE, FAST } |
Public Member Functions | |
QemuComputer (double quantum_seconds) | |
void | delta_int () |
Internal transition function. | |
void | delta_ext (double e, const Bag< X > &xb) |
void | delta_conf (const Bag< X > &xb) |
double | ta () |
void | output_func (Bag< X > &yb) |
double | get_timing_error () const |
double | get_qemu_time () const |
double | get_quantum_seconds () const |
double | get_mean_timing_error () const |
double | get_max_timing_error () const |
![]() | |
Atomic () | |
The constructor should place the model into its initial state. | |
virtual void | gc_output (Bag< X > &g)=0 |
virtual | ~Atomic () |
Destructor. | |
Atomic< X, double > * | typeIsAtomic () |
Returns a pointer to this model. | |
![]() | |
Devs () | |
Default constructor. | |
virtual | ~Devs () |
Destructor. | |
virtual Network< X, double > * | typeIsNetwork () |
virtual MealyAtomic< X, double > * | typeIsMealyAtomic () |
Returns NULL if this is not a mealy atomic model; returns itself otherwise. | |
const Network< X, double > * | getParent () const |
Network< X, double > * | getParent () |
void | setParent (Network< X, double > *parent) |
virtual bool | model_transition () |
Protected Member Functions | |
void | create_x86 (std::vector< std::string > &qemu_args, std::string disk_img, int mb_ram=2048, EmulatorMode emulator_mode=PRECISE) |
void | create_x86 (std::vector< std::string > &qemu_args, std::vector< std::string > &disks, std::vector< std::string > &disk_formats, std::string &cdrom, bool boot_cdrom, int mb_ram, EmulatorMode emulator_mode) |
void | create_8052 (std::vector< std::string > &ucsim_args, std::string flash_img, ComputerMemoryAccess **obj=NULL) |
![]() | |
double | getLastEventTime () const |
|
virtual |
|
virtual |
External transition function.
e | Time elapsed since the last change of state |
xb | Input for the model. |
Implements adevs::Atomic< X >.
|
virtual |
Output function. Output values should be added to the bag yb.
yb | Empty bag to be filled with the model's output |
Implements adevs::Atomic< X >.
|
virtual |
Time advance function. adevs_inf<T>() is used for infinity.
Implements adevs::Atomic< X >.