VANET Simulator
 All Classes Functions Variables
Public Member Functions | Public Attributes | List of all members
vanetsim.gui.helpers.VehicleTypeXML Class Reference

Public Member Functions

 VehicleTypeXML (String path)
 
ArrayList< VehicleTypegetVehicleTypes ()
 
void saveVehicleTypes (ArrayList< VehicleType > tmpList)
 
String getDefaultPath ()
 

Public Attributes

ArrayList< VehicleTypetypes_
 

Detailed Description

This class provides functions to read (getVehicleTypes()) and save (saveVehiclesTypes()) in xml

Constructor & Destructor Documentation

vanetsim.gui.helpers.VehicleTypeXML.VehicleTypeXML ( String  path)
inline

If no path is set, the default path is used

Member Function Documentation

String vanetsim.gui.helpers.VehicleTypeXML.getDefaultPath ( )
inline

Gets the defaultPath.

Returns
String defaultPath_: the default path to save the vehicle types.
ArrayList<VehicleType> vanetsim.gui.helpers.VehicleTypeXML.getVehicleTypes ( )
inline

Returns a ArrayList with all vehicle types found.

Returns
Arraylist with all vehicle types
void vanetsim.gui.helpers.VehicleTypeXML.saveVehicleTypes ( ArrayList< VehicleType tmpList)
inline

*Save all vehicle types in tmpList to the xmlPath_

Member Data Documentation

ArrayList<VehicleType> vanetsim.gui.helpers.VehicleTypeXML.types_

The ArrayList types collects all VehicleTypes


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