mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 01:22:11 +00:00
68 lines
2.0 KiB
C#
68 lines
2.0 KiB
C#
#region S# License
|
|
/******************************************************************************************
|
|
NOTICE!!! This program and source code is owned and licensed by
|
|
StockSharp, LLC, www.stocksharp.com
|
|
Viewing or use of this code requires your acceptance of the license
|
|
agreement found at https://github.com/StockSharp/StockSharp/blob/master/LICENSE
|
|
Removal of this comment is a violation of the license agreement.
|
|
|
|
Project: StockSharp.Algo.Testing.Algo
|
|
File: EmulationStateMessage.cs
|
|
Created: 2015, 11, 11, 2:32 PM
|
|
|
|
Copyright 2010 by StockSharp, LLC
|
|
*******************************************************************************************/
|
|
#endregion S# License
|
|
namespace StockSharp.Algo.Testing
|
|
{
|
|
using StockSharp.Messages;
|
|
|
|
/// <summary>
|
|
/// The message, informing about the emulator state change.
|
|
/// </summary>
|
|
class EmulationStateMessage : Message
|
|
{
|
|
///// <summary>
|
|
///// Дата в истории, с которой необходимо начать эмуляцию.
|
|
///// </summary>
|
|
//public DateTimeOffset StartDate { get; set; }
|
|
|
|
///// <summary>
|
|
///// Дата в истории, на которой необходимо закончить эмуляцию (дата включается).
|
|
///// </summary>
|
|
//public DateTimeOffset StopDate { get; set; }
|
|
|
|
///// <summary>
|
|
///// Предыдущее состояние.
|
|
///// </summary>
|
|
//public EmulationStates OldState { get; set; }
|
|
|
|
/// <summary>
|
|
/// The state been transferred.
|
|
/// </summary>
|
|
public EmulationStates State { get; set; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="EmulationStateMessage"/>.
|
|
/// </summary>
|
|
public EmulationStateMessage()
|
|
: base(ExtendedMessageTypes.EmulationState)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Create a copy of <see cref="Message"/>.
|
|
/// </summary>
|
|
/// <returns>Copy.</returns>
|
|
public override Message Clone()
|
|
{
|
|
return new EmulationStateMessage
|
|
{
|
|
//OldState = OldState,
|
|
State = State,
|
|
//StartDate = StartDate,
|
|
//StopDate = StopDate,
|
|
};
|
|
}
|
|
}
|
|
} |