adevs
Public Types | Public Member Functions | Protected Member Functions | List of all members
adevs::QemuComputer< X > Class Template Reference
Inheritance diagram for adevs::QemuComputer< X >:
adevs::Atomic< X > adevs::Devs< X, double >

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
 
- Public Member Functions inherited from adevs::Atomic< X >
 Atomic ()
 The constructor should place the model into its initial state.
 
virtual void gc_output (Bag< X > &g)=0
 
virtual void beginLookahead ()
 
virtual void endLookahead ()
 
virtual ~Atomic ()
 Destructor.
 
Atomic< X, double > * typeIsAtomic ()
 Returns a pointer to this model.
 
- Public Member Functions inherited from adevs::Devs< X, double >
 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 ()
 
virtual double lookahead ()
 
void setProc (int proc)
 
int getProc ()
 

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)
 
- Protected Member Functions inherited from adevs::Atomic< X >
double getLastEventTime () const
 

Member Function Documentation

template<typename X >
void adevs::QemuComputer< X >::delta_conf ( const Bag< X > &  xb)
virtual

Confluent transition function.

Parameters
xbInput for the model.

Implements adevs::Atomic< X >.

template<typename X >
void adevs::QemuComputer< X >::delta_ext ( double  e,
const Bag< X > &  xb 
)
virtual

External transition function.

Parameters
eTime elapsed since the last change of state
xbInput for the model.

Implements adevs::Atomic< X >.

template<typename X >
void adevs::QemuComputer< X >::output_func ( Bag< X > &  yb)
virtual

Output function. Output values should be added to the bag yb.

Parameters
ybEmpty bag to be filled with the model's output

Implements adevs::Atomic< X >.

template<typename X >
double adevs::QemuComputer< X >::ta ( )
virtual

Time advance function. adevs_inf<T>() is used for infinity.

Returns
The time to the next internal event

Implements adevs::Atomic< X >.


The documentation for this class was generated from the following file: