DiagramElement

StockSharp.Diagram

O elemento diagrama.

Herda de: BaseLogReceiver

Implementa: INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable

Construtores

DiagramElement
protected DiagramElement()
diagramElement = DiagramElement()

Inicializa uma nova instância do DiagramElement.

Propriedades

CanAutoName
public bool CanAutoName { get; set; }
value = diagramElement.CanAutoName
diagramElement.CanAutoName = value

Use o nome automático.

Category
public virtual string Category { get; private set; }
value = diagramElement.Category
diagramElement.Category = value

O nome do grupo que inclui um elemento de diagrama.

Connector
protected IConnector Connector { get; }
value = diagramElement.Connector

Connector.

DebuggerSyncObject
public DebuggerSyncObject DebuggerSyncObject { get; set; }
value = diagramElement.DebuggerSyncObject
diagramElement.DebuggerSyncObject = value

O objeto de sincronização para o depurador.

Description
public virtual string Description { get; private set; }
value = diagramElement.Description
diagramElement.Description = value

A descrição do elemento do diagrama.

Dispatcher
protected virtual IDispatcher Dispatcher { get; }
value = diagramElement.Dispatcher

Eu disse que era o Dispatcher.

DocUrl
public virtual string DocUrl { get; set; }
value = diagramElement.DocUrl
diagramElement.DocUrl = value

Ajuda a Url.

FlushPriority
public int FlushPriority { get; protected set; }
value = diagramElement.FlushPriority
diagramElement.FlushPriority = value

É necessário estado de rubor (FlushDisabled significa Não).

HasUndoManager
public virtual bool HasUndoManager { get; }
value = diagramElement.HasUndoManager

Verificar se o gestor de desfazer está definido

IconName
public abstract string IconName { get; }
value = diagramElement.IconName

Nome do recurso de ícones.

InputSockets
public IReadOnlyCollection<DiagramSocket> InputSockets { get; }
value = diagramElement.InputSockets

Ligação a chegar.

IsExternalCode
public virtual bool IsExternalCode { get; }
value = diagramElement.IsExternalCode

É o elemento contém código externo.

IsUndoRedoing
public virtual bool IsUndoRedoing { get; }
value = diagramElement.IsUndoRedoing

A operação desfazer/refazer está em andamento.

LogLevel
public override LogLevels LogLevel { get; set; }
value = diagramElement.LogLevel
diagramElement.LogLevel = value

O nível para executar esta regra de registro.

Name
public override string Name { get; set; }
value = diagramElement.Name
diagramElement.Name = value

Nome.

OutputSockets
public IReadOnlyCollection<DiagramSocket> OutputSockets { get; }
value = diagramElement.OutputSockets

Ligações de saída.

Parameters
public virtual IEnumerable<IDiagramElementParam> Parameters { get; }
value = diagramElement.Parameters

Configuração do elemento do diagrama.

ParentComposition
public CompositionDiagramElement ParentComposition { get; private set; }
value = diagramElement.ParentComposition
diagramElement.ParentComposition = value

Composição dos pais a que este elemento pertence.

ProcessingLevel
protected int ProcessingLevel { get; private set; }
value = diagramElement.ProcessingLevel
diagramElement.ProcessingLevel = value

Nível de processamento de elementos. Quantas vezes DiagramSocketValue) é reentrada.

ProcessNullValues
public bool ProcessNullValues { get; set; }
value = diagramElement.ProcessNullValues
diagramElement.ProcessNullValues = value

Processar valores nulos.

ShowParameters
public bool ShowParameters { get; set; }
value = diagramElement.ShowParameters
diagramElement.ShowParameters = value

Mostrar parâmetros de elementos em elementos de ordem superior.

ShowSockets
public bool ShowSockets { get; set; }
value = diagramElement.ShowSockets
diagramElement.ShowSockets = value

Mostrar soquetes de elementos em elementos de ordem superior.

Strategy
public virtual DiagramStrategy Strategy { get; set; }
value = diagramElement.Strategy
diagramElement.Strategy = value

A estratégia a que o elemento está ligado.

TypeId
public abstract Guid TypeId { get; }
value = diagramElement.TypeId

O identificador único do tipo de elemento do diagrama.

WaitAllInput
protected virtual bool WaitAllInput { get; }
value = diagramElement.WaitAllInput

Aguarde todos os parâmetros antes de invocar o método.

Métodos

AddInput
protected DiagramSocket AddInput(StaticSocketIds id, string name, DiagramSocketType type, Action<DiagramSocketValue> process, int linkableMax, int index, bool? isDynamic)
result = diagramElement.AddInput(id, name, type, process, linkableMax, index, isDynamic)

Para adicionar ou obter uma ligação de entrada existente. isDynamic is false by default.

id
O identificador de ligação.
name
O nome da ligação.
type
Tipo de ligação.
linkableMax
O número máximo de ligações.
process
A ação é chamada no processamento do novo valor de entrada para soquete.
index
Lista de índices de soquetes.
isDynamic
O 'socket' será salvo com o elemento. O padrão é verdadeiro para sockets com id explícito.

Retorna: Ligação.

AddInput
protected DiagramSocket AddInput(string id, string name, DiagramSocketType type, Action<DiagramSocketValue> process, int linkableMax, int index, bool? isDynamic)
result = diagramElement.AddInput(id, name, type, process, linkableMax, index, isDynamic)

Para adicionar ou obter uma ligação de entrada existente. isDynamic é verdadeiro por omissão.

id
O identificador de ligação.
name
O nome da ligação.
type
Tipo de ligação.
linkableMax
O número máximo de ligações.
process
A ação é chamada no processamento do novo valor de entrada para soquete.
index
Lista de índices de soquetes.
isDynamic
O 'socket' será salvo com o elemento. O padrão é verdadeiro para sockets com id explícito.

Retorna: Ligação.

AddOutput
protected DiagramSocket AddOutput(StaticSocketIds id, string name, DiagramSocketType type, int linkableMax, int index, bool isDynamic)
result = diagramElement.AddOutput(id, name, type, linkableMax, index, isDynamic)

Para adicionar ou obter uma conexão de saída.

id
O identificador de ligação.
name
O nome da ligação.
type
Tipo de ligação.
linkableMax
O número máximo de ligações.
index
Lista de índices de soquetes.
isDynamic
Os soquetes dinâmicos são removidos durante o Load().

Retorna: Ligação.

AddOutput
protected DiagramSocket AddOutput(string id, string name, DiagramSocketType type, int linkableMax, int index, bool isDynamic)
result = diagramElement.AddOutput(id, name, type, linkableMax, index, isDynamic)

Para adicionar ou obter uma conexão de saída.

id
O identificador de ligação.
name
O nome da ligação.
type
Tipo de ligação.
linkableMax
O número máximo de ligações.
index
Lista de índices de soquetes.
isDynamic
Os soquetes dinâmicos são removidos durante o Load().

Retorna: Ligação.

AddParam
protected void AddParam(IDiagramElementParam param)
diagramElement.AddParam(param)

Para adicionar um parâmetro.

param
Parâmetro.
AddParam``1
protected DiagramElementParam<T> AddParam<T>(string name, T value)
result = diagramElement.AddParam(name, value)

Para adicionar um parâmetro.

name
Nome.
value
Valor.

Retorna: Parâmetro.

ClearSocketValues
public virtual void ClearSocketValues()
diagramElement.ClearSocketValues()

Limpar valores de soquete.

Clone
public virtual DiagramElement Clone(bool cloneSockets)
result = diagramElement.Clone(cloneSockets)

Criar uma cópia de DiagramElement.

cloneSockets
Para criar cópias de conexões.

Retorna: Entendido.

CreateCopy
protected virtual DiagramElement CreateCopy()
result = diagramElement.CreateCopy()

Criar uma cópia de DiagramElement.

Retorna: DiagramElement copy.

CreateSocketInstance
protected virtual DiagramSocket CreateSocketInstance(DiagramSocketDirection dir, string socketId)
result = diagramElement.CreateSocketInstance(dir, socketId)

Criar uma nova instância de soquete.

DisposeManaged
protected override void DisposeManaged()
diagramElement.DisposeManaged()

Libertar recursos.

Flush
public virtual void Flush(DateTime time)
diagramElement.Flush(time)

Flush elementos não gatilho (raiz).

GenerateSocketId
public static string GenerateSocketId(string suffix)
result = DiagramElement.GenerateSocketId(suffix)

Gerar o identificador de socket.

suffix
Sufixo.

Retorna: Identificador.

GetCategory
public virtual string GetCategory()
result = diagramElement.GetCategory()

- A categoria.

Retorna: Categoria.

GetConnectedSourceSockets
public DiagramSocket[] GetConnectedSourceSockets(DiagramSocket targetInputSocket)
result = diagramElement.GetConnectedSourceSockets(targetInputSocket)

Ligar as tomadas de origem.

targetInputSocket
GetDescription
public virtual string GetDescription()
result = diagramElement.GetDescription()

Arranja uma descrição.

Retorna: Descrição.

GetDisplayName
public virtual string GetDisplayName()
result = diagramElement.GetDisplayName()

Arranja o nome do ecrã.

Retorna: Nome.

GetNumConnections
public int GetNumConnections(DiagramSocket socket)
result = diagramElement.GetNumConnections(socket)

Conta a ligação.

socket
Socket.

Retorna: Conta.

GetOrAddSocket
protected ValueTuple<DiagramSocket, bool> GetOrAddSocket(string socketId, DiagramSocketDirection dir, string name, DiagramSocketType type, Action<DiagramSocketValue> process, int linkableMax, int index, bool isDynamic, bool allowGet)
result = diagramElement.GetOrAddSocket(socketId, dir, name, type, process, linkableMax, index, isDynamic, allowGet)

Para adicionar ou obter uma conexão de saída.

socketId
O identificador de ligação.
dir
DiagramSocketDirection
name
O nome da ligação.
type
Tipo de ligação.
process
A ação é chamada no processamento do novo valor de entrada para soquete.
linkableMax
O número máximo de ligações.
index
Lista de índices de soquetes.
isDynamic
Os soquetes dinâmicos são removidos durante SettingsStorage).
allowGet
Devolver o socket existente se já existir.

Retorna: Ligação.

Init
public void Init(ILogSource parent)
diagramElement.Init(parent)

Para inicializar o elemento.

parent
Composição ou estratégia dos pais.
InitializeCopy
public virtual void InitializeCopy(DiagramElement copiedFrom)
diagramElement.InitializeCopy(copiedFrom)
Load
public override void Load(SettingsStorage storage)
diagramElement.Load(storage)

Carregar as configurações.

storage
Configuração do armazenamento.
OnInit
protected virtual void OnInit()
diagramElement.OnInit()

O método é chamado na inicialização do elemento diagrama.

OnPrepare
protected virtual void OnPrepare()
diagramElement.OnPrepare()

Preparar para iniciar o algoritmo do elemento diagrama.

OnProcess
protected virtual void OnProcess(DateTime time, IDictionary<DiagramSocket, DiagramSocketValue> values, DiagramSocketValue source)
diagramElement.OnProcess(time, values, source)

O método é chamado no processamento dos novos valores recebidos.

time
Tempo.
values
Valores.
source
Valor de fonte.
OnReseted
protected virtual void OnReseted()
diagramElement.OnReseted()

O método é chamado de re-inicialização do estado do elemento diagrama.

OnSocketConnected
protected virtual void OnSocketConnected(DiagramSocket socket, DiagramSocket source)
diagramElement.OnSocketConnected(socket, source)

O método é chamado na assinatura para o processamento dos valores de saída de elementos de diagrama.

socket
O elemento de diagrama soquete.
source
O soquete do elemento do diagrama de origem.
OnSocketDisconnected
protected virtual void OnSocketDisconnected(DiagramSocket socket, DiagramSocket source)
diagramElement.OnSocketDisconnected(socket, source)

O método é chamado de cancelamento a partir do processamento dos valores de saída do elemento diagrama.

socket
O elemento de diagrama soquete.
source
O soquete do elemento do diagrama de origem.
OnStart
protected virtual void OnStart(DateTime time)
diagramElement.OnStart(time)

O método é chamado no início do algoritmo do elemento diagrama.

OnStop
protected virtual void OnStop()
diagramElement.OnStop()

O método é chamado na parada do algoritmo do elemento diagrama.

OnUnInit
protected virtual void OnUnInit()
diagramElement.OnUnInit()

O método é chamado de deinicialização do elemento diagrama.

Prepare
public void Prepare()
diagramElement.Prepare()

Preparar para iniciar o algoritmo do elemento diagrama.

Process
public void Process(DiagramSocketValue value)
diagramElement.Process(value)

Para lidar com o valor de entrada.

value
Valor.
RaiseParameterValueChanged
protected virtual void RaiseParameterValueChanged(string parameterName)
diagramElement.RaiseParameterValueChanged(parameterName)

Chamar o ParameterValueChanged evento.

parameterName
Nome do parâmetro.
RaiseProcessOutput
protected void RaiseProcessOutput(DiagramSocket socket, DateTime time, object value, DiagramSocketValue source, Subscription subscription)
diagramElement.RaiseProcessOutput(socket, time, value, source, subscription)

Chamar o evento ProcessOutput.

socket
Soquete de saída.
time
Tempo.
value
Valor.
source
Valor de fonte.
subscription
Assinatura.
RaisePropertiesChanged
protected virtual void RaisePropertiesChanged()
diagramElement.RaisePropertiesChanged()

Chamar o PropertiesChanged evento.

RaisePropertyChanged
protected virtual void RaisePropertyChanged(string propertyName)
diagramElement.RaisePropertyChanged(propertyName)

Chamar o PropertyChanged evento.

propertyName
Nome da propriedade.
RaisePropertyChanged
protected virtual void RaisePropertyChanged(object sender, PropertyChangedEventArgs args)
diagramElement.RaisePropertyChanged(sender, args)

Chamar o PropertyChanged evento.

sender
- Enviado.
args
Argumentos.
RaisePropertyChanging
protected virtual void RaisePropertyChanging(string propertyName)
diagramElement.RaisePropertyChanging(propertyName)

Chamar o PropertyChanging evento.

propertyName
Nome da propriedade.
RaisePropertyChanging
protected virtual void RaisePropertyChanging(object sender, PropertyChangingEventArgs args)
diagramElement.RaisePropertyChanging(sender, args)

Chamar o PropertyChanging evento.

sender
- Enviado.
args
Argumentos.
RaiseSocketChanged
protected void RaiseSocketChanged(DiagramSocket socket)
diagramElement.RaiseSocketChanged(socket)

Chamar o evento SocketChanged.

socket
Socket.
RemoveParam
protected void RemoveParam(IDiagramElementParam param)
diagramElement.RemoveParam(param)

Para remover um parâmetro.

param
Parâmetro.
RemoveSocket
protected void RemoveSocket(DiagramSocket socket)
diagramElement.RemoveSocket(socket)

Para remover uma ligação.

socket
Ligação.
RemoveSockets
protected void RemoveSockets(Func<DiagramSocket, bool> predicate, bool raiseSocketRemoved)
diagramElement.RemoveSockets(predicate, raiseSocketRemoved)

Para remover várias tomadas.

predicate
raiseSocketRemoved
Aumentar SocketRemoved event.
RemoveSockets
protected virtual void RemoveSockets(bool raiseSocketRemoved)
diagramElement.RemoveSockets(raiseSocketRemoved)

Para remover todas as conexões de entrada e saída.

raiseSocketRemoved
Aumentar SocketRemoved event.
Reset
public void Reset()
diagramElement.Reset()

Para reiniciar o estado do elemento diagrama.

ResetFlushPriority
protected void ResetFlushPriority()
diagramElement.ResetFlushPriority()

Reiniciar FlushPriority.

Save
public override void Save(SettingsStorage storage)
diagramElement.Save(storage)

Gravar as definições.

storage
Configuração do armazenamento.
SaveUndoState
protected IDisposable SaveUndoState(object debugState)
result = diagramElement.SaveUndoState(debugState)

Gravar o estado para activar a anulação.

SetElementName
protected void SetElementName(string name)
diagramElement.SetElementName(name)

Definir o nome do elemento.

name
Nome.
Start
public void Start(DateTime time)
diagramElement.Start(time)

Para iniciar para iniciar o algoritmo do elemento diagrama.

Stop
public void Stop()
diagramElement.Stop()

Para parar o algoritmo do elemento diagrama.

UnInit
public void UnInit()
diagramElement.UnInit()

A deinicialização do elemento.

Eventos

CommittedUndoableOperation
public event Action<DiagramElement, IUndoableEdit> CommittedUndoableOperation
diagramElement.CommittedUndoableOperation += handler

Operação inamovível comprometida.

ParameterValueChanged
public event Action<string> ParameterValueChanged
diagramElement.ParameterValueChanged += handler

O elemento diagrama valor mudança evento.

ProcessOutput
public event Action<DiagramSocketValue> ProcessOutput
diagramElement.ProcessOutput += handler

Novos dados que ocorrem.

PropertiesChanged
public event Action PropertiesChanged
diagramElement.PropertiesChanged += handler

As propriedades disponíveis mudam evento.

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
diagramElement.PropertyChanged += handler

O elemento diagrama propriedades valor mudança evento.

PropertyChanging
public event PropertyChangingEventHandler PropertyChanging
diagramElement.PropertyChanging += handler

O elemento diagrama propriedades valor mudança evento.

SocketAdded
public event Action<DiagramSocket> SocketAdded
diagramElement.SocketAdded += handler

A ligação do elemento diagrama foi adicionada a evento.

SocketChanged
public event Action<DiagramSocket> SocketChanged
diagramElement.SocketChanged += handler

A conexão do elemento diagrama mudou o evento.

SocketRemoved
public event Action<DiagramSocket> SocketRemoved
diagramElement.SocketRemoved += handler

A conexão do elemento diagrama removido evento.

StartedUndoableOperation
public event Action StartedUndoableOperation
diagramElement.StartedUndoableOperation += handler

Começou a operação inamovível.

Campos

FlushDisabled
protected const int FlushDisabled
value = DiagramElement.FlushDisabled

Valor desactivado para FlushPriority.

FlushNormal
protected const int FlushNormal
value = DiagramElement.FlushNormal

Valor normal para FlushPriority.