DataPoint renamed to DataFlow
This commit is contained in:
@@ -5,15 +5,8 @@ uses
|
|||||||
System.StartUpCopy,
|
System.StartUpCopy,
|
||||||
FMX.Forms,
|
FMX.Forms,
|
||||||
MainForm in 'MainForm.pas' {Form1},
|
MainForm in 'MainForm.pas' {Form1},
|
||||||
Myc.Aura.Module in '..\Src\Myc.Aura.Module.pas',
|
|
||||||
Myc.Aura.Parameter in '..\Src\Myc.Aura.Parameter.pas',
|
|
||||||
TestModule in 'TestModule.pas',
|
TestModule in 'TestModule.pas',
|
||||||
DynamicFMXControl in 'DynamicFMXControl.pas',
|
DynamicFMXControl in 'DynamicFMXControl.pas';
|
||||||
Myc.Trade.DataArray in '..\Src\Myc.Trade.DataArray.pas',
|
|
||||||
Myc.FMX.Chart.Series in '..\Src\Myc.FMX.Chart.Series.pas',
|
|
||||||
Myc.Trade.Indicators in '..\Src\Myc.Trade.Indicators.pas',
|
|
||||||
Myc.Trade.Types in '..\Src\Myc.Trade.Types.pas',
|
|
||||||
Myc.DataRecord in '..\Src\Myc.DataRecord.pas';
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
|
|||||||
@@ -135,15 +135,8 @@
|
|||||||
<DCCReference Include="MainForm.pas">
|
<DCCReference Include="MainForm.pas">
|
||||||
<Form>Form1</Form>
|
<Form>Form1</Form>
|
||||||
</DCCReference>
|
</DCCReference>
|
||||||
<DCCReference Include="..\Src\Myc.Aura.Module.pas"/>
|
|
||||||
<DCCReference Include="..\Src\Myc.Aura.Parameter.pas"/>
|
|
||||||
<DCCReference Include="TestModule.pas"/>
|
<DCCReference Include="TestModule.pas"/>
|
||||||
<DCCReference Include="DynamicFMXControl.pas"/>
|
<DCCReference Include="DynamicFMXControl.pas"/>
|
||||||
<DCCReference Include="..\Src\Myc.Trade.DataArray.pas"/>
|
|
||||||
<DCCReference Include="..\Src\Myc.FMX.Chart.Series.pas"/>
|
|
||||||
<DCCReference Include="..\Src\Myc.Trade.Indicators.pas"/>
|
|
||||||
<DCCReference Include="..\Src\Myc.Trade.Types.pas"/>
|
|
||||||
<DCCReference Include="..\Src\Myc.DataRecord.pas"/>
|
|
||||||
<BuildConfiguration Include="Base">
|
<BuildConfiguration Include="Base">
|
||||||
<Key>Base</Key>
|
<Key>Base</Key>
|
||||||
</BuildConfiguration>
|
</BuildConfiguration>
|
||||||
|
|||||||
@@ -32,14 +32,13 @@ uses
|
|||||||
Myc.Futures,
|
Myc.Futures,
|
||||||
Myc.Trade.Types,
|
Myc.Trade.Types,
|
||||||
Myc.Trade.DataStream,
|
Myc.Trade.DataStream,
|
||||||
Myc.Trade.DataPoint,
|
Myc.DataFlow,
|
||||||
Myc.Signals,
|
Myc.Signals,
|
||||||
Myc.Mutable,
|
Myc.Mutable,
|
||||||
Myc.Trade.DataArray,
|
Myc.Trade.DataArray,
|
||||||
Myc.Signals.FMX,
|
Myc.Signals.FMX,
|
||||||
Myc.TaskManager,
|
Myc.TaskManager,
|
||||||
Myc.Aura.Module,
|
Myc.Aura.Module,
|
||||||
Myc.Trade.DataPoint.Impl,
|
|
||||||
FMX.ListBox,
|
FMX.ListBox,
|
||||||
FMX.Layouts,
|
FMX.Layouts,
|
||||||
FMX.TreeView,
|
FMX.TreeView,
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ interface
|
|||||||
uses
|
uses
|
||||||
Myc.Signals,
|
Myc.Signals,
|
||||||
Myc.Trade.Types,
|
Myc.Trade.Types,
|
||||||
Myc.Trade.DataPoint,
|
|
||||||
Myc.Trade.DataArray,
|
Myc.Trade.DataArray,
|
||||||
|
Myc.DataFlow,
|
||||||
Myc.DataRecord,
|
Myc.DataRecord,
|
||||||
Myc.Trade.Indicators;
|
Myc.Trade.Indicators;
|
||||||
|
|
||||||
|
|||||||
@@ -165,7 +165,6 @@ uses
|
|||||||
Myc.Signals,
|
Myc.Signals,
|
||||||
Myc.Futures,
|
Myc.Futures,
|
||||||
Myc.Mutable,
|
Myc.Mutable,
|
||||||
Myc.Trade.DataPoint,
|
|
||||||
Myc.Aura.Parameter;
|
Myc.Aura.Parameter;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
unit Myc.Trade.DataPoint.Impl;
|
unit Myc.DataFlow.Impl;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
@@ -9,9 +9,9 @@ uses
|
|||||||
Myc.Signals,
|
Myc.Signals,
|
||||||
Myc.Mutable,
|
Myc.Mutable,
|
||||||
Myc.Core.Notifier,
|
Myc.Core.Notifier,
|
||||||
|
Myc.DataFlow,
|
||||||
Myc.Trade.Types,
|
Myc.Trade.Types,
|
||||||
Myc.Trade.DataArray,
|
Myc.Trade.DataArray;
|
||||||
Myc.Trade.DataPoint;
|
|
||||||
|
|
||||||
type
|
type
|
||||||
// Abstract base class for data consumers.
|
// Abstract base class for data consumers.
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
unit Myc.Trade.DataPoint;
|
unit Myc.DataFlow;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ type
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Myc.Trade.DataPoint.Impl;
|
Myc.DataFlow.Impl;
|
||||||
|
|
||||||
{ TProducer<T> }
|
{ TProducer<T> }
|
||||||
|
|
||||||
@@ -10,8 +10,7 @@ uses
|
|||||||
Myc.Mutable,
|
Myc.Mutable,
|
||||||
Myc.Trade.Types,
|
Myc.Trade.Types,
|
||||||
Myc.Trade.DataArray,
|
Myc.Trade.DataArray,
|
||||||
Myc.Trade.DataPoint,
|
Myc.DataFlow,
|
||||||
Myc.Trade.DataPoint.Impl,
|
|
||||||
Myc.Fmx.Chart;
|
Myc.Fmx.Chart;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ uses
|
|||||||
FMX.Graphics,
|
FMX.Graphics,
|
||||||
FMX.Forms,
|
FMX.Forms,
|
||||||
Myc.Trade.Types,
|
Myc.Trade.Types,
|
||||||
Myc.Trade.DataPoint,
|
|
||||||
Myc.Signals,
|
Myc.Signals,
|
||||||
Myc.Mutable;
|
Myc.Mutable,
|
||||||
|
Myc.DataFlow;
|
||||||
|
|
||||||
type
|
type
|
||||||
TMycChart = class(TStyledControl)
|
TMycChart = class(TStyledControl)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ uses
|
|||||||
Myc.Signals,
|
Myc.Signals,
|
||||||
Myc.Mutable,
|
Myc.Mutable,
|
||||||
Myc.Trade.Types,
|
Myc.Trade.Types,
|
||||||
Myc.Trade.DataPoint,
|
Myc.DataFlow,
|
||||||
Myc.Core.FileCache;
|
Myc.Core.FileCache;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|||||||
@@ -1,48 +0,0 @@
|
|||||||
unit Myc.Trade.Node;
|
|
||||||
|
|
||||||
interface
|
|
||||||
|
|
||||||
uses
|
|
||||||
System.SysUtils;
|
|
||||||
|
|
||||||
type
|
|
||||||
// Base interface for all objects created by an INode factory.
|
|
||||||
ITradeObject = interface
|
|
||||||
['{B8A29A67-272E-456A-A816-A19A76E43213}']
|
|
||||||
end;
|
|
||||||
|
|
||||||
// Represents a node in the trading graph, acting as a factory for a trade object.
|
|
||||||
INode = interface
|
|
||||||
['{E879B5E4-3A4E-434A-8A4F-A9F71B0B7E1C}']
|
|
||||||
function GetCaption: string;
|
|
||||||
// Factory method to create the runtime object.
|
|
||||||
function CreateObject: ITradeObject;
|
|
||||||
|
|
||||||
property Caption: string read GetCaption;
|
|
||||||
end;
|
|
||||||
|
|
||||||
// Abstract base class for all node implementations.
|
|
||||||
TNodeBase = class abstract(TInterfacedObject, INode)
|
|
||||||
protected
|
|
||||||
fCaption: string;
|
|
||||||
function GetCaption: string;
|
|
||||||
public
|
|
||||||
constructor Create(const Caption: string);
|
|
||||||
function CreateObject: ITradeObject; virtual; abstract;
|
|
||||||
end;
|
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
{ TNodeBase }
|
|
||||||
|
|
||||||
constructor TNodeBase.Create(const Caption: string);
|
|
||||||
begin
|
|
||||||
fCaption := Caption;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TNodeBase.GetCaption: string;
|
|
||||||
begin
|
|
||||||
result := fCaption;
|
|
||||||
end;
|
|
||||||
|
|
||||||
end.
|
|
||||||
@@ -18,17 +18,11 @@ uses
|
|||||||
TestNotifier_Threading in 'TestNotifier_Threading.pas' {/TestNotifier_ChaosStress in 'TestNotifier_ChaosStress.pas',},
|
TestNotifier_Threading in 'TestNotifier_Threading.pas' {/TestNotifier_ChaosStress in 'TestNotifier_ChaosStress.pas',},
|
||||||
TestNotifier_ChaosStress in 'TestNotifier_ChaosStress.pas',
|
TestNotifier_ChaosStress in 'TestNotifier_ChaosStress.pas',
|
||||||
TestTasks in 'TestTasks.pas',
|
TestTasks in 'TestTasks.pas',
|
||||||
Myc.Futures in '..\Src\Myc.Futures.pas',
|
|
||||||
TestCoreFutures in 'TestCoreFutures.pas',
|
TestCoreFutures in 'TestCoreFutures.pas',
|
||||||
Myc.TaskManager in '..\Src\Myc.TaskManager.pas',
|
|
||||||
TestFutures in 'TestFutures.pas',
|
TestFutures in 'TestFutures.pas',
|
||||||
Myc.Test.Core.Atomic in '..\Src\Myc.Test.Core.Atomic.pas',
|
Myc.Test.Core.Atomic in '..\Src\Myc.Test.Core.Atomic.pas',
|
||||||
Myc.Test.Signals.Latch in '..\Src\Myc.Test.Signals.Latch.pas',
|
Myc.Test.Signals.Latch in '..\Src\Myc.Test.Signals.Latch.pas',
|
||||||
Myc.Test.Signals.Dirty in '..\Src\Myc.Test.Signals.Dirty.pas',
|
Myc.Test.Signals.Dirty in '..\Src\Myc.Test.Signals.Dirty.pas',
|
||||||
Myc.Trade.DataPoint in '..\Src\Myc.Trade.DataPoint.pas',
|
|
||||||
Myc.Trade.Node in '..\Src\Myc.Trade.Node.pas',
|
|
||||||
Myc.Trade.DataStream in '..\Src\Myc.Trade.DataStream.pas',
|
|
||||||
Myc.Mutable in '..\Src\Myc.Mutable.pas',
|
|
||||||
Test.Core.Mutable in 'Test.Core.Mutable.pas',
|
Test.Core.Mutable in 'Test.Core.Mutable.pas',
|
||||||
TestDataRecord in 'TestDataRecord.pas',
|
TestDataRecord in 'TestDataRecord.pas',
|
||||||
TestDataArray in 'TestDataArray.pas';
|
TestDataArray in 'TestDataArray.pas';
|
||||||
|
|||||||
@@ -119,17 +119,11 @@ $(PreBuildEvent)]]></PreBuildEvent>
|
|||||||
</DCCReference>
|
</DCCReference>
|
||||||
<DCCReference Include="TestNotifier_ChaosStress.pas"/>
|
<DCCReference Include="TestNotifier_ChaosStress.pas"/>
|
||||||
<DCCReference Include="TestTasks.pas"/>
|
<DCCReference Include="TestTasks.pas"/>
|
||||||
<DCCReference Include="..\Src\Myc.Futures.pas"/>
|
|
||||||
<DCCReference Include="TestCoreFutures.pas"/>
|
<DCCReference Include="TestCoreFutures.pas"/>
|
||||||
<DCCReference Include="..\Src\Myc.TaskManager.pas"/>
|
|
||||||
<DCCReference Include="TestFutures.pas"/>
|
<DCCReference Include="TestFutures.pas"/>
|
||||||
<DCCReference Include="..\Src\Myc.Test.Core.Atomic.pas"/>
|
<DCCReference Include="..\Src\Myc.Test.Core.Atomic.pas"/>
|
||||||
<DCCReference Include="..\Src\Myc.Test.Signals.Latch.pas"/>
|
<DCCReference Include="..\Src\Myc.Test.Signals.Latch.pas"/>
|
||||||
<DCCReference Include="..\Src\Myc.Test.Signals.Dirty.pas"/>
|
<DCCReference Include="..\Src\Myc.Test.Signals.Dirty.pas"/>
|
||||||
<DCCReference Include="..\Src\Myc.Trade.DataPoint.pas"/>
|
|
||||||
<DCCReference Include="..\Src\Myc.Trade.Node.pas"/>
|
|
||||||
<DCCReference Include="..\Src\Myc.Trade.DataStream.pas"/>
|
|
||||||
<DCCReference Include="..\Src\Myc.Mutable.pas"/>
|
|
||||||
<DCCReference Include="Test.Core.Mutable.pas"/>
|
<DCCReference Include="Test.Core.Mutable.pas"/>
|
||||||
<DCCReference Include="TestDataRecord.pas"/>
|
<DCCReference Include="TestDataRecord.pas"/>
|
||||||
<DCCReference Include="TestDataArray.pas"/>
|
<DCCReference Include="TestDataArray.pas"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user