view Implab/Components/RunnableComponent.cs @ 183:4f82e0f161c3 ref20160224

fixed DFA optimization, JSON is fully functional
author cin
date Fri, 25 Mar 2016 02:49:02 +0300
parents c32688129f14
children d6a8cba73acc
line wrap: on
line source

using System;
using Implab.Formats;

namespace Implab.Components {
    public class RunnableComponent : Disposable, IRunnable, IInitializable {
        



            
        IPromise m_pending;
        Exception m_lastError;

        protected RunnableComponent(bool initialized) {
            
        }

        #region IInitializable implementation

        public void Init() {
            
        }

        #endregion

        #region IRunnable implementation

        public IPromise Start() {
            throw new NotImplementedException();
        }

        protected virtual IPromise OnStart() {
            return Promise.SUCCESS;
        }

        protected virtual void Run() {
        }

        public IPromise Stop() {
            throw new NotImplementedException();
        }

        public ExecutionState State {
            get {
                throw new NotImplementedException();
            }
        }

        public Exception LastError {
            get {
                throw new NotImplementedException();
            }
        }

        #endregion
    }
}