C# Класс IBE.EDDB_Data.EDMilkyway

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

EDMilkyway() публичный Метод

creates a new Milkyway :-)
public EDMilkyway ( ) : System
Результат System

calculateAveragePrices() публичный Метод

calculates the min, max and average market price for supply and demand of each commodity
public calculateAveragePrices ( ) : MarketData>.Dictionary
Результат MarketData>.Dictionary

calculateNewPriceLimits() публичный Метод

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
Результат void

cloneCommodities() публичный Метод

returns a cloned list of the commodities
public cloneCommodities ( ) : List
Результат List

cloneStations() публичный Метод

returns a cloned list of the stations
public cloneStations ( enDataType Stationtype ) : List
Stationtype enDataType
Результат List

cloneSystems() публичный Метод

returns a cloned list of the systems
public cloneSystems ( enDataType Systemstype ) : List
Systemstype enDataType
Результат List

existSystem() публичный Метод

check if there's a system with this name
public existSystem ( string Systemname ) : bool
Systemname string
Результат bool

getCommodities() публичный Метод

returns all commodities
public getCommodities ( ) : List
Результат List

getCommodity() публичный Метод

returns the base data of a commodity
public getCommodity ( int CommodityId ) : EDCommoditiesExt
CommodityId int
Результат EDCommoditiesExt

getCommodity() публичный Метод

returns the base data of a commodity
public getCommodity ( string commodityName ) : EDCommoditiesExt
commodityName string
Результат EDCommoditiesExt

getStation() публичный Метод

returns a station in a system by name
public getStation ( string systemName, string stationName ) : EDStation
systemName string
stationName string
Результат EDStation

getStation() публичный Метод

returns a station in a system by name
public getStation ( string systemName, string stationName, EDSystem &System ) : EDStation
systemName string
stationName string
System EDSystem
Результат EDStation

getStationDistance() публичный Метод

returns distance of a station to the star
public getStationDistance ( string systemName, string stationName ) : Int32
systemName string
stationName string
Результат System.Int32

getStationNames() публичный Метод

get all for stationnames a system
public getStationNames ( string Systemname ) : string[]
Systemname string
Результат string[]

getStations() публичный Метод

returns all stations
public getStations ( enDataType Stationtype ) : List
Stationtype enDataType
Результат List

getStations() публичный Метод

get all stations for a system from the main list
public getStations ( string Systemname ) : List
Systemname string
Результат List

getStations() публичный Метод

get all stations for a system from a particular list
public getStations ( string Systemname, enDataType wantedType ) : List
Systemname string
wantedType enDataType
Результат List

getSystem() публичный Метод

get the data of a system
public getSystem ( string Systemname ) : EDSystem
Systemname string
Результат EDSystem

getSystemCoordinates() публичный Метод

get coordinates of a system
public getSystemCoordinates ( string Systemname ) : System.Windows.Forms.DataVisualization.Charting.Point3D
Systemname string
Результат System.Windows.Forms.DataVisualization.Charting.Point3D

getSystems() публичный Метод

returns all systems
public getSystems ( enDataType Systemtype ) : List
Systemtype enDataType
Результат List

loadStationData() публичный Метод

loads the stationsdata from a file
public loadStationData ( string Filename, enDataType Stationtype, bool createNonExistingFile ) : void
Filename string
Stationtype enDataType
createNonExistingFile bool
Результат void

loadSystemData() публичный Метод

loads the systemsdata from a file
public loadSystemData ( string Filename, enDataType Systemtype, bool createNonExistingFile ) : void
Filename string
Systemtype enDataType
createNonExistingFile bool
Результат void

mergeData() публичный Метод

merging EDDB and own data to one big list
public mergeData ( ) : bool
Результат bool

saveRNCommodityData() публичный Метод

saves the RN-specific commodity data to a file
public saveRNCommodityData ( string Filename, bool BackupOldFile ) : void
Filename string
BackupOldFile bool
Результат void

saveStationData() публичный Метод

saves the stationsdata to a file
public saveStationData ( string Filename, enDataType Stationtype, bool BackupOldFile ) : void
Filename string
Stationtype enDataType
BackupOldFile bool
Результат void

saveSystemData() публичный Метод

loads the systemsdata to a file
public saveSystemData ( string Filename, enDataType Systemtype, bool BackupOldFile ) : void
Filename string
Systemtype enDataType
BackupOldFile bool
Результат void

setCommodities() публичный Метод

public setCommodities ( List newList ) : void
newList List
Результат void