Greet 2014
Documentation for the GREET 2014 API
 All Classes Namespaces Functions Variables Enumerations Properties Events
Greet.DataStructureV3.Entities.Vehicles Class Reference

Inherits from Dictionary in order to store all the vehicles definitions from the database More...

Inheritance diagram for Greet.DataStructureV3.Entities.Vehicles:

Public Member Functions

 Vehicles ()
 Empty constructor for the vehicles dictionary storing the vehicles from the datbase More...
 
void AddValue (IVehicle value)
 
IVehicle CreateValue (IData data, int type=0)
 
bool DeleteValue (IData data, int key)
 
bool KeyExists (int key)
 
bool ReadDB (GData data, XmlNode vehiclesNode)
 Reading the database in XML format to be loaded in the software, creates vehicles objects More...
 
XmlNode ToXmlNode (XmlDocument xmlDoc)
 Saves all the vehicles as an XML node that will be written in the data file More...
 
IVehicle ValueForKey (int key)
 

Public Attributes

bool fullyLoaded = false
 If we completed the database loading without incidents this flag is set to true More...
 
bool loaded = false
 If we started loading the database this flag is set to true More...
 
Parameter vehicleTechnologyLag
 Symbolize the average age of the vehicles on the road More...
 

Properties

IEnumerable< IVehicleAllValues [get]
 

Detailed Description

Inherits from Dictionary in order to store all the vehicles definitions from the database

Constructor & Destructor Documentation

Greet.DataStructureV3.Entities.Vehicles.Vehicles ( )

Empty constructor for the vehicles dictionary storing the vehicles from the datbase

Member Function Documentation

bool Greet.DataStructureV3.Entities.Vehicles.ReadDB ( GData  data,
XmlNode  vehiclesNode 
)

Reading the database in XML format to be loaded in the software, creates vehicles objects

Parameters
vehiclesNode
Returns
XmlNode Greet.DataStructureV3.Entities.Vehicles.ToXmlNode ( XmlDocument  xmlDoc)

Saves all the vehicles as an XML node that will be written in the data file

Parameters
xmlDoc
Returns

Member Data Documentation

bool Greet.DataStructureV3.Entities.Vehicles.fullyLoaded = false

If we completed the database loading without incidents this flag is set to true

bool Greet.DataStructureV3.Entities.Vehicles.loaded = false

If we started loading the database this flag is set to true

Parameter Greet.DataStructureV3.Entities.Vehicles.vehicleTechnologyLag

Symbolize the average age of the vehicles on the road


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