C# Class IBE.EDDB_Data.EDMilkyway

Afficher le fichier Open project: Duke-Jones/ED-IBE

Méthodes publiques

Méthode Description
EDMilkyway ( ) : System

creates a new Milkyway :-)

calculateAveragePrices ( ) : MarketData>.Dictionary

calculates the min, max and average market price for supply and demand of each commodity

calculateNewPriceLimits ( string FileName = "" ) : void

calculating the market prices and save them as min and max values for new OCR_ed data, if "FileName" is not nothing the new data will is saves in this file

cloneCommodities ( ) : List

returns a cloned list of the commodities

cloneStations ( enDataType Stationtype ) : List

returns a cloned list of the stations

cloneSystems ( enDataType Systemstype ) : List

returns a cloned list of the systems

existSystem ( string Systemname ) : bool

check if there's a system with this name

getCommodities ( ) : List

returns all commodities

getCommodity ( int CommodityId ) : EDCommoditiesExt

returns the base data of a commodity

getCommodity ( string commodityName ) : EDCommoditiesExt

returns the base data of a commodity

getStation ( string systemName, string stationName ) : EDStation

returns a station in a system by name

getStation ( string systemName, string stationName, EDSystem &System ) : EDStation

returns a station in a system by name

getStationDistance ( string systemName, string stationName ) : Int32

returns distance of a station to the star

getStationNames ( string Systemname ) : string[]

get all for stationnames a system

getStations ( enDataType Stationtype ) : List

returns all stations

getStations ( string Systemname ) : List

get all stations for a system from the main list

getStations ( string Systemname, enDataType wantedType ) : List

get all stations for a system from a particular list

getSystem ( string Systemname ) : EDSystem

get the data of a system

getSystemCoordinates ( string Systemname ) : System.Windows.Forms.DataVisualization.Charting.Point3D

get coordinates of a system

getSystems ( enDataType Systemtype ) : List

returns all systems

loadStationData ( string Filename, enDataType Stationtype, bool createNonExistingFile ) : void

loads the stationsdata from a file

loadSystemData ( string Filename, enDataType Systemtype, bool createNonExistingFile ) : void

loads the systemsdata from a file

mergeData ( ) : bool

merging EDDB and own data to one big list

saveRNCommodityData ( string Filename, bool BackupOldFile ) : void

saves the RN-specific commodity data to a file

saveStationData ( string Filename, enDataType Stationtype, bool BackupOldFile ) : void

saves the stationsdata to a file

saveSystemData ( string Filename, enDataType Systemtype, bool BackupOldFile ) : void

loads the systemsdata to a file

setCommodities ( List newList ) : void

Private Methods

Méthode Description
ChangeAddStation ( string Systemname, EDStation m_currentStationdata, string oldStationName = null ) : void

changes or adds a station to the "own" list and to the merged list EDDB basedata will not be changed

ChangeAddSystem ( EDSystem m_currentSystemdata, string oldSystemName = null ) : void

changes or adds a system to the "own" list and to the merged list EDDB basedata will not be changed

checkStations ( EDSystem ownSystem, EDSystem existingEDDNSystem, bool &SystemCanBeDeleted, bool &StationsChanged ) : void

check if the stations of two stations are equal if the system exists in the EDDB data and in the own data

copyStationsForNewSystem ( EDSystem newSystem ) : void

go and get station clones from the own data for a new station and adds them to the merged data

getSystemStation ( string Systemname, string StationName ) : EDStation
loadCommodityData ( string EDDBCommodityDatafile, string RNCommodityDatafile, bool createNonExistingFile, bool CheckOnly = false ) : bool

loads the commodity data from the files

rotateSaveFiles ( string Filename, string newFile, string backupFile, bool BackupOldFile ) : void

Method Details

EDMilkyway() public méthode

creates a new Milkyway :-)
public EDMilkyway ( ) : System
Résultat System

calculateAveragePrices() public méthode

calculates the min, max and average market price for supply and demand of each commodity
public calculateAveragePrices ( ) : MarketData>.Dictionary
Résultat MarketData>.Dictionary

calculateNewPriceLimits() public méthode

calculating the market prices and save them as min and max values for new OCR_ed data, if "FileName" is not nothing the new data will is saves in this file
public calculateNewPriceLimits ( string FileName = "" ) : void
FileName string name of the file to save to
Résultat void

cloneCommodities() public méthode

returns a cloned list of the commodities
public cloneCommodities ( ) : List
Résultat List

cloneStations() public méthode

returns a cloned list of the stations
public cloneStations ( enDataType Stationtype ) : List
Stationtype enDataType
Résultat List

cloneSystems() public méthode

returns a cloned list of the systems
public cloneSystems ( enDataType Systemstype ) : List
Systemstype enDataType
Résultat List

existSystem() public méthode

check if there's a system with this name
public existSystem ( string Systemname ) : bool
Systemname string
Résultat bool

getCommodities() public méthode

returns all commodities
public getCommodities ( ) : List
Résultat List

getCommodity() public méthode

returns the base data of a commodity
public getCommodity ( int CommodityId ) : EDCommoditiesExt
CommodityId int
Résultat EDCommoditiesExt

getCommodity() public méthode

returns the base data of a commodity
public getCommodity ( string commodityName ) : EDCommoditiesExt
commodityName string
Résultat EDCommoditiesExt

getStation() public méthode

returns a station in a system by name
public getStation ( string systemName, string stationName ) : EDStation
systemName string
stationName string
Résultat EDStation

getStation() public méthode

returns a station in a system by name
public getStation ( string systemName, string stationName, EDSystem &System ) : EDStation
systemName string
stationName string
System EDSystem
Résultat EDStation

getStationDistance() public méthode

returns distance of a station to the star
public getStationDistance ( string systemName, string stationName ) : Int32
systemName string
stationName string
Résultat System.Int32

getStationNames() public méthode

get all for stationnames a system
public getStationNames ( string Systemname ) : string[]
Systemname string
Résultat string[]

getStations() public méthode

returns all stations
public getStations ( enDataType Stationtype ) : List
Stationtype enDataType
Résultat List

getStations() public méthode

get all stations for a system from the main list
public getStations ( string Systemname ) : List
Systemname string
Résultat List

getStations() public méthode

get all stations for a system from a particular list
public getStations ( string Systemname, enDataType wantedType ) : List
Systemname string
wantedType enDataType
Résultat List

getSystem() public méthode

get the data of a system
public getSystem ( string Systemname ) : EDSystem
Systemname string
Résultat EDSystem

getSystemCoordinates() public méthode

get coordinates of a system
public getSystemCoordinates ( string Systemname ) : System.Windows.Forms.DataVisualization.Charting.Point3D
Systemname string
Résultat System.Windows.Forms.DataVisualization.Charting.Point3D

getSystems() public méthode

returns all systems
public getSystems ( enDataType Systemtype ) : List
Systemtype enDataType
Résultat List

loadStationData() public méthode

loads the stationsdata from a file
public loadStationData ( string Filename, enDataType Stationtype, bool createNonExistingFile ) : void
Filename string
Stationtype enDataType
createNonExistingFile bool
Résultat void

loadSystemData() public méthode

loads the systemsdata from a file
public loadSystemData ( string Filename, enDataType Systemtype, bool createNonExistingFile ) : void
Filename string
Systemtype enDataType
createNonExistingFile bool
Résultat void

mergeData() public méthode

merging EDDB and own data to one big list
public mergeData ( ) : bool
Résultat bool

saveRNCommodityData() public méthode

saves the RN-specific commodity data to a file
public saveRNCommodityData ( string Filename, bool BackupOldFile ) : void
Filename string
BackupOldFile bool
Résultat void

saveStationData() public méthode

saves the stationsdata to a file
public saveStationData ( string Filename, enDataType Stationtype, bool BackupOldFile ) : void
Filename string
Stationtype enDataType
BackupOldFile bool
Résultat void

saveSystemData() public méthode

loads the systemsdata to a file
public saveSystemData ( string Filename, enDataType Systemtype, bool BackupOldFile ) : void
Filename string
Systemtype enDataType
BackupOldFile bool
Résultat void

setCommodities() public méthode

public setCommodities ( List newList ) : void
newList List
Résultat void