C# Class IBE.EDDN.EDDNCommunicator

显示文件 Open project: Duke-Jones/ED-IBE Class Usage Examples

Private Properties

Property Type Description
ConvertCommodityV3_To_CSVRows String[]
JournalEventRecieved void
RecievedEDDNData void
SendCommodityData_i void
SendDelayTimerCommodity_Elapsed void
SendDelayTimerJournal_Elapsed void
SendDelayTimerMarket_Elapsed void
SendDelayTimerOutfitting_Elapsed void
SendDelayTimerShipyard_Elapsed void
SendJournalData_i void
SendMarketData_i void
SendOutfittingData_i void
SendShipyardData_i void
UpdateRawData void
UpdateRejectedData void
UpdateStatisticData void
UpdateStatisticDataMsg void

Public Methods

Method Description
ActivateSender ( ) : void

activatesender the sender

DeactivateSender ( ) : void

deactivates the sender

Dispose ( ) : void
EDDNCommunicator ( ) : System
RegisterJournalScanner ( FileScanner journalScanner ) : void
SendCommodityData ( JObject dataObject ) : void

send the commodity data of this station

SendJournalData ( JObject dataObject ) : void

send the journal data

SendOutfittingData ( JObject dataObject ) : void

send the outfitting data of this station

SendShipyardData ( JObject dataObject ) : void

send the shipyard data of this station

SendingReset ( ) : void
StartEDDNListening ( ) : void

starts EDDN-listening (if already started the EDDN-lister will be stopped and restarted)

StopEDDNListening ( ) : void

stops EDDN-listening if started

UserIdentification ( ) : String

checks and gets the EDDN id

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnLocationChanged ( DataChangedEventArgs e ) : void
OnLocationChanged ( DataTransmittedEventArgs e ) : void

Private Methods

Method Description
ConvertCommodityV3_To_CSVRows ( JObject commodityV3Data ) : String[]
JournalEventRecieved ( object sender, FileScanner e ) : void

event-worker for JournalEventRecieved-event

RecievedEDDNData ( object sender, EDDN e ) : void

processing of the recieved data

SendCommodityData_i ( ) : void

internal send routine for registered data: It's called by the delay-timer "_SendDelayTimer_Commodity"

SendDelayTimerCommodity_Elapsed ( object source, System e ) : void

timer routine for sending all registered commoditydata to EDDN

SendDelayTimerJournal_Elapsed ( object source, System e ) : void

timer routine for sending all registered data to EDDN

SendDelayTimerMarket_Elapsed ( object source, System e ) : void

timer routine for sending all registered commoditydata to EDDN

SendDelayTimerOutfitting_Elapsed ( object source, System e ) : void

timer routine for sending all registered data to EDDN

SendDelayTimerShipyard_Elapsed ( object source, System e ) : void

timer routine for sending all registered data to EDDN

SendJournalData_i ( ) : void

internal send routine for registered data: It's called by the delay-timer "_SendDelayTimer_Commodity"

SendMarketData_i ( ) : void

internal send routine for registered data: It's called by the delay-timer "_SendDelayTimer_Commodity"

SendOutfittingData_i ( ) : void

internal send routine for registered data: It's called by the delay-timer "_SendDelayTimer_Commodity"

SendShipyardData_i ( ) : void

internal send routine for registered data: It's called by the delay-timer "_SendDelayTimer_Commodity"

UpdateRawData ( String info ) : void

updates the content of the "recieve" data

UpdateRejectedData ( String info ) : void

updates the content of the "implausible" data

UpdateStatisticData ( int dataCount, string SoftwareID, String relay, String commander ) : void

refreshes the info about software versions and recieved messages

UpdateStatisticDataMsg ( enMessageTypes mType ) : void

refreshes the info about recieved messagetypes

Method Details

ActivateSender() public method

activatesender the sender
public ActivateSender ( ) : void
return void

DeactivateSender() public method

deactivates the sender
public DeactivateSender ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EDDNCommunicator() public method

public EDDNCommunicator ( ) : System
return System

OnLocationChanged() protected method

protected OnLocationChanged ( DataChangedEventArgs e ) : void
e DataChangedEventArgs
return void

OnLocationChanged() protected method

protected OnLocationChanged ( DataTransmittedEventArgs e ) : void
e DataTransmittedEventArgs
return void

RegisterJournalScanner() public method

public RegisterJournalScanner ( FileScanner journalScanner ) : void
journalScanner FileScanner
return void

SendCommodityData() public method

send the commodity data of this station
public SendCommodityData ( JObject dataObject ) : void
dataObject JObject
return void

SendJournalData() public method

send the journal data
public SendJournalData ( JObject dataObject ) : void
dataObject JObject
return void

SendOutfittingData() public method

send the outfitting data of this station
public SendOutfittingData ( JObject dataObject ) : void
dataObject JObject
return void

SendShipyardData() public method

send the shipyard data of this station
public SendShipyardData ( JObject dataObject ) : void
dataObject JObject
return void

SendingReset() public method

public SendingReset ( ) : void
return void

StartEDDNListening() public method

starts EDDN-listening (if already started the EDDN-lister will be stopped and restarted)
public StartEDDNListening ( ) : void
return void

StopEDDNListening() public method

stops EDDN-listening if started
public StopEDDNListening ( ) : void
return void

UserIdentification() public method

checks and gets the EDDN id
public UserIdentification ( ) : String
return String