DataPoint renamed to DataFlow

This commit is contained in:
Michael Schimmel
2025-07-25 08:58:05 +02:00
parent b217be6f01
commit e20e359919
13 changed files with 12 additions and 89 deletions
-1
View File
@@ -165,7 +165,6 @@ uses
Myc.Signals,
Myc.Futures,
Myc.Mutable,
Myc.Trade.DataPoint,
Myc.Aura.Parameter;
type
@@ -1,4 +1,4 @@
unit Myc.Trade.DataPoint.Impl;
unit Myc.DataFlow.Impl;
interface
@@ -9,9 +9,9 @@ uses
Myc.Signals,
Myc.Mutable,
Myc.Core.Notifier,
Myc.DataFlow,
Myc.Trade.Types,
Myc.Trade.DataArray,
Myc.Trade.DataPoint;
Myc.Trade.DataArray;
type
// Abstract base class for data consumers.
@@ -1,4 +1,4 @@
unit Myc.Trade.DataPoint;
unit Myc.DataFlow;
interface
@@ -151,7 +151,7 @@ type
implementation
uses
Myc.Trade.DataPoint.Impl;
Myc.DataFlow.Impl;
{ TProducer<T> }
+1 -2
View File
@@ -10,8 +10,7 @@ uses
Myc.Mutable,
Myc.Trade.Types,
Myc.Trade.DataArray,
Myc.Trade.DataPoint,
Myc.Trade.DataPoint.Impl,
Myc.DataFlow,
Myc.Fmx.Chart;
type
+2 -2
View File
@@ -16,9 +16,9 @@ uses
FMX.Graphics,
FMX.Forms,
Myc.Trade.Types,
Myc.Trade.DataPoint,
Myc.Signals,
Myc.Mutable;
Myc.Mutable,
Myc.DataFlow;
type
TMycChart = class(TStyledControl)
+1 -1
View File
@@ -12,7 +12,7 @@ uses
Myc.Signals,
Myc.Mutable,
Myc.Trade.Types,
Myc.Trade.DataPoint,
Myc.DataFlow,
Myc.Core.FileCache;
type
-48
View File
@@ -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.