DiagramElement

StockSharp.Diagram

El elemento del diagrama.

Hereda de: BaseLogReceiver

Implementa: INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable

Constructores

DiagramElement
protected DiagramElement()
diagramElement = DiagramElement()

Inicia una nueva instancia de la DiagramElement.

Propiedades

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

Usa el nombre de auto.

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

El nombre del grupo que incluye un elemento de diagrama.

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

Connector.

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

El objeto de sincronización para el depurador.

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

La descripción del elemento del diagrama.

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

IDispatcher.

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

Ayuda a Url.

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

Es necesario el estado de la flauta (FlushDisabledmedio No).

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

Compruebe si el administrador de undo se define

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

Nombre de los recursos de iconos.

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

Conexión entrante.

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

Es el elemento contiene código externo.

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

Ya sea que la operación de deshacer/rehacer está en marcha.

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

El nivel para realizar esta registro de reglas.

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

Nombre.

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

Conexiones salientes.

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

Ajustes del elemento de diagrama.

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

Composición de los parientes que este elemento pertenece.

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

Nivel de procesamiento de elementos. ¿Cuántas veces DiagramSocketValue@) se reinicia.

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

Valores nulos del proceso.

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

Mostrar parámetros de elementos en elementos de orden superior.

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

Mostrar elementos de toma en tomas en elementos de orden superior.

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

La estrategia a la que se adjunta el elemento.

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

El identificador único del tipo de elemento del diagrama.

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

Espere todos los parámetros antes de invocar el 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 agregar o obtener la conexión entrante existente. isDynamic es falsa por defecto.

id
El identificador de conexión.
name
El nombre de conexión.
type
Tipo de conexión.
linkableMax
El número máximo de conexiones.
process
La acción se llama al procesamiento del nuevo valor entrante para el socket.
index
Índice en la lista de tomas.
isDynamic
El calcetín se guardará con el elemento. Default es cierto para las tomas con id explícita.

Devuelve: Conexión.

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 agregar o obtener la conexión entrante existente. isDynamic es verdad por defecto.

id
El identificador de conexión.
name
El nombre de conexión.
type
Tipo de conexión.
linkableMax
El número máximo de conexiones.
process
La acción se llama al procesamiento del nuevo valor entrante para el socket.
index
Índice en la lista de tomas.
isDynamic
El calcetín se guardará con el elemento. Default es cierto para las tomas con id explícita.

Devuelve: Conexión.

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 agregar o obtener una conexión saliente.

id
El identificador de conexión.
name
El nombre de conexión.
type
Tipo de conexión.
linkableMax
El número máximo de conexiones.
index
Índice en la lista de tomas.
isDynamic
Las tomas dinámicas se eliminan durante la carga().

Devuelve: Conexión.

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 agregar o obtener una conexión saliente.

id
El identificador de conexión.
name
El nombre de conexión.
type
Tipo de conexión.
linkableMax
El número máximo de conexiones.
index
Índice en la lista de tomas.
isDynamic
Las tomas dinámicas se eliminan durante la carga().

Devuelve: Conexión.

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

Para añadir un parámetro.

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

Para añadir un parámetro.

name
Nombre.
value
Valor.

Devuelve: Parámetro.

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

Valores de toma clara.

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

Crear una copia de DiagramElement.

cloneSockets
Para crear copias de conexiones.

Devuelve: Copiado.

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

Crear una copia de DiagramElement.

Devuelve: DiagramElement@ copy.

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

Crear nueva instancia de toma.

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

Libera recursos.

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

Elementos de no desencadenante (raíz).

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

Genera identificador de toma.

suffix
Sufijo.

Devuelve: Identificador.

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

Consigue la categoría.

Devuelve: Categoría.

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

Consigue tomas de fuente conectadas.

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

Consigue descripción.

Devuelve: Descripción.

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

Consigue el nombre de la pantalla.

Devuelve: Nombre.

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

Contáctanos.

socket
Socket.

Devuelve: Conde.

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 agregar o obtener una conexión saliente.

socketId
El identificador de conexión.
dir
DiagramSocketDirection
name
El nombre de conexión.
type
Tipo de conexión.
process
La acción se llama al procesamiento del nuevo valor entrante para el socket.
linkableMax
El número máximo de conexiones.
index
Índice en la lista de tomas.
isDynamic
Se eliminan tomas dinámicas durante SettingsStorage).
allowGet
Regrese el socket existente si ya existe.

Devuelve: Conexión.

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

Para inicializar el elemento.

parent
Composición o estrategia de los parientes.
InitializeCopy
public virtual void InitializeCopy(DiagramElement copiedFrom)
diagramElement.InitializeCopy(copiedFrom)
Load
public override void Load(SettingsStorage storage)
diagramElement.Load(storage)

Ajustes de carga.

storage
Configuración de almacenamiento.
OnInit
protected virtual void OnInit()
diagramElement.OnInit()

El método se llama a la inicialización del elemento diagrama.

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

Para prepararse para iniciar el algoritmo del elemento del diagrama.

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

El método se llama al procesamiento de los nuevos valores entrantes.

time
Tiempo.
values
Valores.
source
Valor fuente.
OnReseted
protected virtual void OnReseted()
diagramElement.OnReseted()

El método se llama a la reinicialización del estado del elemento del diagrama.

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

El método se llama a la suscripción al procesamiento de los valores de salida del elemento de diagrama.

socket
El elemento del diagrama.
source
El elemento fuente del diagrama de la toma.
OnSocketDisconnected
protected virtual void OnSocketDisconnected(DiagramSocket socket, DiagramSocket source)
diagramElement.OnSocketDisconnected(socket, source)

El método se llama a la suscripción del procesamiento de los valores de salida del elemento del diagrama.

socket
El elemento del diagrama.
source
El elemento fuente del diagrama de la toma.
OnStart
protected virtual void OnStart(DateTime time)
diagramElement.OnStart(time)

El método se llama al inicio del algoritmo de elemento de diagrama.

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

El método se llama en la parada del algoritmo del elemento del diagrama.

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

El método se llama a la deinicialización del elemento diagrama.

Prepare
public void Prepare()
diagramElement.Prepare()

Para prepararse para iniciar el algoritmo del elemento del diagrama.

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

Para manejar el valor entrante.

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

Para llamar al evento ParameterValueChanged.

parameterName
Nombre del parámetro.
RaiseProcessOutput
protected void RaiseProcessOutput(DiagramSocket socket, DateTime time, object value, DiagramSocketValue source, Subscription subscription)
diagramElement.RaiseProcessOutput(socket, time, value, source, subscription)

Para llamar al evento ProcessOutput.

socket
Enchufe de salida.
time
Tiempo.
value
Valor.
source
Valor fuente.
subscription
Suscripción.
RaisePropertiesChanged
protected virtual void RaisePropertiesChanged()
diagramElement.RaisePropertiesChanged()

Para llamar al evento PropertiesChanged.

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

Para llamar al evento PropertyChanged.

propertyName
Nombre de la propiedad.
RaisePropertyChanged
protected virtual void RaisePropertyChanged(object sender, PropertyChangedEventArgs args)
diagramElement.RaisePropertyChanged(sender, args)

Para llamar al evento PropertyChanged.

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

Para llamar al evento PropertyChanging.

propertyName
Nombre de la propiedad.
RaisePropertyChanging
protected virtual void RaisePropertyChanging(object sender, PropertyChangingEventArgs args)
diagramElement.RaisePropertyChanging(sender, args)

Para llamar al evento PropertyChanging.

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

Para llamar al evento SocketChanged.

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

Para quitar un parámetro.

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

Para eliminar una conexión.

socket
Conexión.
RemoveSockets
protected void RemoveSockets(Func<DiagramSocket, bool> predicate, bool raiseSocketRemoved)
diagramElement.RemoveSockets(predicate, raiseSocketRemoved)

Para quitar múltiples tomas.

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

Para eliminar todas las conexiones entrantes y salientes.

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

Para reiniciar el estado del elemento del diagrama.

ResetFlushPriority
protected void ResetFlushPriority()
diagramElement.ResetFlushPriority()

Reset FlushPriority.

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

Guardar configuración.

storage
Configuración de almacenamiento.
SaveUndoState
protected IDisposable SaveUndoState(object debugState)
result = diagramElement.SaveUndoState(debugState)

Guardar el estado para permitir el deshacer.

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

Establece el nombre del elemento.

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

Para comenzar por el algoritmo del elemento del diagrama.

Stop
public void Stop()
diagramElement.Stop()

Para detener el algoritmo del elemento del diagrama.

UnInit
public void UnInit()
diagramElement.UnInit()

La deinicialización del elemento.

Eventos

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

Cometieron una operación indomable.

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

El elemento de diagrama cambia el evento.

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

Nuevo evento de datos.

PropertiesChanged
public event Action PropertiesChanged
diagramElement.PropertiesChanged += handler

El evento de cambio de propiedades disponibles.

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
diagramElement.PropertyChanged += handler

El elemento de diagrama valora el evento del cambio.

PropertyChanging
public event PropertyChangingEventHandler PropertyChanging
diagramElement.PropertyChanging += handler

El elemento de diagrama valora el cambio de evento.

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

El elemento de diagrama de conexión añadido evento.

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

La conexión del elemento del diagrama cambió el evento.

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

El elemento de conexión del diagrama se elimina el evento.

StartedUndoableOperation
public event Action StartedUndoableOperation
diagramElement.StartedUndoableOperation += handler

Empecé a operar deshacerse.

Campos

FlushDisabled
protected const int FlushDisabled
value = DiagramElement.FlushDisabled

Valor para discapacitados FlushPriority.

FlushNormal
protected const int FlushNormal
value = DiagramElement.FlushNormal

Valor normal para FlushPriority.