Avionics
Dropship Simulator
Systems::Virtualization Class Reference

#include <Virtualization.h>

Collaboration diagram for Systems::Virtualization:
[legend]

Public Member Functions

 Virtualization (Logger *prmLogger, Bus *prmBus)
 
 ~Virtualization ()
 
void FrameMove (double fTime)
 
ConnectorFindConnectorByGuid (GUID guid)
 
ComponentFindComponentByGuid (GUID guid) const
 
void Initialize ()
 
void LoadFile ()
 
void SaveFile ()
 

Private Member Functions

 Virtualization ()
 

Private Attributes

Busbus
 
Loggerlogger
 
std::vector< Connectorconnectors
 
float filever2 = 0.0f
 
UINT currentComponent = 0
 
UINT currentConnector = 0
 
bool doComponent = false
 

Detailed Description

Definition at line 7 of file Virtualization.h.

Constructor & Destructor Documentation

◆ Virtualization() [1/2]

Systems::Virtualization::Virtualization ( )
private

◆ Virtualization() [2/2]

Systems::Virtualization::Virtualization ( Logger prmLogger,
Bus prmBus 
)

Definition at line 5 of file Virtualization.cpp.

Here is the call graph for this function:

◆ ~Virtualization()

Systems::Virtualization::~Virtualization ( )
Todo:
save file

Definition at line 17 of file Virtualization.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ FindComponentByGuid()

Component * Systems::Virtualization::FindComponentByGuid ( GUID  guid) const

Definition at line 63 of file Virtualization.cpp.

Here is the caller graph for this function:

◆ FindConnectorByGuid()

Connector * Systems::Virtualization::FindConnectorByGuid ( GUID  guid)

Definition at line 53 of file Virtualization.cpp.

Here is the caller graph for this function:

◆ FrameMove()

void Systems::Virtualization::FrameMove ( double  fTime)

Definition at line 30 of file Virtualization.cpp.

Here is the caller graph for this function:

◆ Initialize()

void Systems::Virtualization::Initialize ( )

Definition at line 73 of file Virtualization.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadFile()

void Systems::Virtualization::LoadFile ( )

components

Todo:
need to define defaults for connectors based on system type

components

ComponentInfo

ComponentInfo

probably should do in the .CMP file itself

DEPENDENCIES

Definition at line 149 of file Virtualization.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SaveFile()

void Systems::Virtualization::SaveFile ( )

components

Todo:
need to define defaults for connectors based on system type

components

ComponentInfo

ComponentInfo

http://stackoverflow.com/questions/12147352/format-specifier-for-scanning-long-unsigned-int

DEPENDENCIES

Definition at line 459 of file Virtualization.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ bus

Bus* Systems::Virtualization::bus
private

loads components and connectors from file (done) holds components and connectors and manages memory (done) cycles through them at intervals to move fluid/current (done)

Todo:

determine failures

damage control

apply states from command stream

push sensor values to bus?

push state changes to command stream?

Definition at line 19 of file Virtualization.h.

◆ connectors

std::vector<Connector> Systems::Virtualization::connectors
private

Definition at line 21 of file Virtualization.h.

◆ currentComponent

UINT Systems::Virtualization::currentComponent = 0
private

Definition at line 25 of file Virtualization.h.

◆ currentConnector

UINT Systems::Virtualization::currentConnector = 0
private

Definition at line 26 of file Virtualization.h.

◆ doComponent

bool Systems::Virtualization::doComponent = false
private

Definition at line 27 of file Virtualization.h.

◆ filever2

float Systems::Virtualization::filever2 = 0.0f
private

Definition at line 23 of file Virtualization.h.

◆ logger

Logger* Systems::Virtualization::logger
private

Definition at line 20 of file Virtualization.h.


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