//----------------------------------------------------------------------- // // Copyright © 2012 Nils Hammar. All rights reserved. // //----------------------------------------------------------------------- /* * Software to access vehicle information via the OBD-II connector. * * Copyright © 2012 Nils Hammar * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Alternative licensing is possible, see the licensing document. * * The above text may not be removed or modified. */ namespace SharedObjects.Protocol { using System; using SharedObjects.GUI; /// /// Presentation layer interface. /// public interface IPresentationLayer : IDisposable { /// /// Gets Counter value. /// int counter { get; } /// /// Gets Dictionary data. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "Reviewed, intentional")] System.Collections.Generic.IDictionary> modeDictionary { get; } /// /// Load logged data to replay. /// /// Data file containing log data. /// Source address for ECU to simulate. void loadReplayData(string dataFile, uint srcAddr); /// /// Load static data. /// /// Data file with static ECU data. void loadStaticData(string dataFile); /// /// Start replay of data from logged file. /// /// Callback interface to indicate end of file. /// Factor for speed to replay data with /// Start timestamp in seconds for data relative to start of file. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "EndPlay", Justification = "Reviewed, intentional")] void playData(ISimEndPlay iSimEndPlay, double replaySpeed, uint startTime); /// /// Gets Scope value. /// uint scope { get; } /// /// Stop replay of data. /// void stopData(); /// /// Gets Current timestamp in seconds for data relative to start of file. /// double timestamp { get; } } }