C# Класс IBE.MTPriceAnalysis.PriceAnalysis

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
PriceAnalysis ( DBConnector ownDBConnector ) : System

constructor

calculateTradingRoutes ( ) : DataTable

calculating the best trading routes

createFilteredTable ( Int32 SystemID, Object Distance, Object DistanceToStar, Object minLandingPadSize, Program VisitedFilter, Object locationType ) : void

creates the filtered basetable of systems and stations

getFilteredSystemAndStationCount ( Int32 &StationCount, Int32 &SystemCount ) : void

gets the number of filtered systems and stations from the table "tmFilteredStations"

getPriceExtremum ( DataTable Result, System.Boolean OnlyTradedCommodities ) : DataTable

calculating the best prices of all station for each commoditiy

loadBestProfitStationCommodities ( dsEliteDB Data, int Station_From, int Station_To, List commodityFilter ) : void

loads all possible trading data from one to another station (one direction)

loadCommoditiesByStation ( DataTable Data, int Station ) : void

loads all possible trading data from one to another station (one direction)

registerExternalTool ( IBE ExternalDataInterface ) : void

register the external tool in the CommandersLog for the DataEvent

registerJournalScanner ( FileScanner journalScanner ) : void

register the LogfileScanner in the CommandersLog for the DataEvent

Защищенные методы

Метод Описание
OnDataChanged ( DataChangedEventArgs e ) : void

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

Метод Описание
InitRetriever ( ) : int

initialization of the dataretriever object (for DGV virtual mode)

JournalEventRecieved ( object sender, FileScanner e ) : void

event-worker for JournalEventRecieved-event

LoadSystemsForBaseComboBox ( string systemString, DataTable currentDt, Program vFilter ) : void

loads only the systems matching the current input

loadCommodities ( DataTable Data ) : void

loads the list of all known commodities into the table

loadStationsByCommodity ( DataTable Data, int Commodity_ID ) : void

load all stationdata for a specific commodity

m_ExternalDataInterface_ExternalDataEvent ( object sender, IBE e ) : void

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

OnDataChanged() защищенный Метод

protected OnDataChanged ( DataChangedEventArgs e ) : void
e DataChangedEventArgs
Результат void

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

constructor
public PriceAnalysis ( DBConnector ownDBConnector ) : System
ownDBConnector DBConnector
Результат System

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

calculating the best trading routes
public calculateTradingRoutes ( ) : DataTable
Результат System.Data.DataTable

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

creates the filtered basetable of systems and stations
public createFilteredTable ( Int32 SystemID, Object Distance, Object DistanceToStar, Object minLandingPadSize, Program VisitedFilter, Object locationType ) : void
SystemID System.Int32
Distance Object
DistanceToStar Object
minLandingPadSize Object
VisitedFilter Program
locationType Object
Результат void

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

gets the number of filtered systems and stations from the table "tmFilteredStations"
public getFilteredSystemAndStationCount ( Int32 &StationCount, Int32 &SystemCount ) : void
StationCount System.Int32
SystemCount System.Int32
Результат void

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

calculating the best prices of all station for each commoditiy
public getPriceExtremum ( DataTable Result, System.Boolean OnlyTradedCommodities ) : DataTable
Result System.Data.DataTable
OnlyTradedCommodities System.Boolean
Результат System.Data.DataTable

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

loads all possible trading data from one to another station (one direction)
public loadBestProfitStationCommodities ( dsEliteDB Data, int Station_From, int Station_To, List commodityFilter ) : void
Data dsEliteDB
Station_From int
Station_To int
commodityFilter List
Результат void

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

loads all possible trading data from one to another station (one direction)
public loadCommoditiesByStation ( DataTable Data, int Station ) : void
Data System.Data.DataTable
Station int
Результат void

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

register the external tool in the CommandersLog for the DataEvent
public registerExternalTool ( IBE ExternalDataInterface ) : void
ExternalDataInterface IBE
Результат void

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

register the LogfileScanner in the CommandersLog for the DataEvent
public registerJournalScanner ( FileScanner journalScanner ) : void
journalScanner FileScanner
Результат void