DiagramElement
El elemento del diagrama.
Hereda de: BaseLogReceiver
Implementa: INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable
Constructores
protected DiagramElement()
diagramElement = DiagramElement()
Inicia una nueva instancia de la DiagramElement.
Propiedades
public bool CanAutoName { get; set; }
value = diagramElement.CanAutoName
diagramElement.CanAutoName = value
Usa el nombre de auto.
public virtual string Category { get; private set; }
value = diagramElement.Category
diagramElement.Category = value
El nombre del grupo que incluye un elemento de diagrama.
public DebuggerSyncObject DebuggerSyncObject { get; set; }
value = diagramElement.DebuggerSyncObject
diagramElement.DebuggerSyncObject = value
El objeto de sincronización para el depurador.
public virtual string Description { get; private set; }
value = diagramElement.Description
diagramElement.Description = value
La descripción del elemento del diagrama.
protected virtual IDispatcher Dispatcher { get; }
value = diagramElement.Dispatcher
IDispatcher.
public virtual string DocUrl { get; set; }
value = diagramElement.DocUrl
diagramElement.DocUrl = value
Ayuda a Url.
public int FlushPriority { get; protected set; }
value = diagramElement.FlushPriority
diagramElement.FlushPriority = value
Es necesario el estado de la flauta (FlushDisabledmedio No).
public virtual bool HasUndoManager { get; }
value = diagramElement.HasUndoManager
Compruebe si el administrador de undo se define
public abstract string IconName { get; }
value = diagramElement.IconName
Nombre de los recursos de iconos.
public IReadOnlyCollection<DiagramSocket> InputSockets { get; }
value = diagramElement.InputSockets
Conexión entrante.
public virtual bool IsExternalCode { get; }
value = diagramElement.IsExternalCode
Es el elemento contiene código externo.
public virtual bool IsUndoRedoing { get; }
value = diagramElement.IsUndoRedoing
Ya sea que la operación de deshacer/rehacer está en marcha.
public override LogLevels LogLevel { get; set; }
value = diagramElement.LogLevel
diagramElement.LogLevel = value
El nivel para realizar esta registro de reglas.
public override string Name { get; set; }
value = diagramElement.Name
diagramElement.Name = value
Nombre.
public IReadOnlyCollection<DiagramSocket> OutputSockets { get; }
value = diagramElement.OutputSockets
Conexiones salientes.
public virtual IEnumerable<IDiagramElementParam> Parameters { get; }
value = diagramElement.Parameters
Ajustes del elemento de diagrama.
public CompositionDiagramElement ParentComposition { get; private set; }
value = diagramElement.ParentComposition
diagramElement.ParentComposition = value
Composición de los parientes que este elemento pertenece.
protected int ProcessingLevel { get; private set; }
value = diagramElement.ProcessingLevel
diagramElement.ProcessingLevel = value
Nivel de procesamiento de elementos. ¿Cuántas veces DiagramSocketValue@) se reinicia.
public bool ProcessNullValues { get; set; }
value = diagramElement.ProcessNullValues
diagramElement.ProcessNullValues = value
Valores nulos del proceso.
public bool ShowParameters { get; set; }
value = diagramElement.ShowParameters
diagramElement.ShowParameters = value
Mostrar parámetros de elementos en elementos de orden superior.
public bool ShowSockets { get; set; }
value = diagramElement.ShowSockets
diagramElement.ShowSockets = value
Mostrar elementos de toma en tomas en elementos de orden superior.
public virtual DiagramStrategy Strategy { get; set; }
value = diagramElement.Strategy
diagramElement.Strategy = value
La estrategia a la que se adjunta el elemento.
public abstract Guid TypeId { get; }
value = diagramElement.TypeId
El identificador único del tipo de elemento del diagrama.
protected virtual bool WaitAllInput { get; }
value = diagramElement.WaitAllInput
Espere todos los parámetros antes de invocar el método.
Métodos
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.
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.
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.
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.
protected void AddParam(IDiagramElementParam param)
diagramElement.AddParam(param)
Para añadir un parámetro.
- param
- Parámetro.
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.
public virtual void ClearSocketValues()
diagramElement.ClearSocketValues()
Valores de toma clara.
public virtual DiagramElement Clone(bool cloneSockets)
result = diagramElement.Clone(cloneSockets)
Crear una copia de DiagramElement.
- cloneSockets
- Para crear copias de conexiones.
Devuelve: Copiado.
protected virtual DiagramElement CreateCopy()
result = diagramElement.CreateCopy()
Crear una copia de DiagramElement.
Devuelve: DiagramElement@ copy.
protected virtual DiagramSocket CreateSocketInstance(DiagramSocketDirection dir, string socketId)
result = diagramElement.CreateSocketInstance(dir, socketId)
Crear nueva instancia de toma.
protected override void DisposeManaged()
diagramElement.DisposeManaged()
Libera recursos.
public virtual void Flush(DateTime time)
diagramElement.Flush(time)
Elementos de no desencadenante (raíz).
public static string GenerateSocketId(string suffix)
result = DiagramElement.GenerateSocketId(suffix)
Genera identificador de toma.
- suffix
- Sufijo.
Devuelve: Identificador.
public virtual string GetCategory()
result = diagramElement.GetCategory()
Consigue la categoría.
Devuelve: Categoría.
public DiagramSocket[] GetConnectedSourceSockets(DiagramSocket targetInputSocket)
result = diagramElement.GetConnectedSourceSockets(targetInputSocket)
Consigue tomas de fuente conectadas.
- targetInputSocket
public virtual string GetDescription()
result = diagramElement.GetDescription()
Consigue descripción.
Devuelve: Descripción.
public virtual string GetDisplayName()
result = diagramElement.GetDisplayName()
Consigue el nombre de la pantalla.
Devuelve: Nombre.
public int GetNumConnections(DiagramSocket socket)
result = diagramElement.GetNumConnections(socket)
Contáctanos.
- socket
- Socket.
Devuelve: Conde.
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.
public void Init(ILogSource parent)
diagramElement.Init(parent)
Para inicializar el elemento.
- parent
- Composición o estrategia de los parientes.
public virtual void InitializeCopy(DiagramElement copiedFrom)
diagramElement.InitializeCopy(copiedFrom)
public override void Load(SettingsStorage storage)
diagramElement.Load(storage)
Ajustes de carga.
- storage
- Configuración de almacenamiento.
protected virtual void OnInit()
diagramElement.OnInit()
El método se llama a la inicialización del elemento diagrama.
protected virtual void OnPrepare()
diagramElement.OnPrepare()
Para prepararse para iniciar el algoritmo del elemento del diagrama.
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.
protected virtual void OnReseted()
diagramElement.OnReseted()
El método se llama a la reinicialización del estado del elemento del diagrama.
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.
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.
protected virtual void OnStart(DateTime time)
diagramElement.OnStart(time)
El método se llama al inicio del algoritmo de elemento de diagrama.
protected virtual void OnStop()
diagramElement.OnStop()
El método se llama en la parada del algoritmo del elemento del diagrama.
protected virtual void OnUnInit()
diagramElement.OnUnInit()
El método se llama a la deinicialización del elemento diagrama.
public void Prepare()
diagramElement.Prepare()
Para prepararse para iniciar el algoritmo del elemento del diagrama.
public void Process(DiagramSocketValue value)
diagramElement.Process(value)
Para manejar el valor entrante.
- value
- Valor.
protected virtual void RaiseParameterValueChanged(string parameterName)
diagramElement.RaiseParameterValueChanged(parameterName)
Para llamar al evento ParameterValueChanged.
- parameterName
- Nombre del parámetro.
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.
protected virtual void RaisePropertiesChanged()
diagramElement.RaisePropertiesChanged()
Para llamar al evento PropertiesChanged.
protected virtual void RaisePropertyChanged(string propertyName)
diagramElement.RaisePropertyChanged(propertyName)
Para llamar al evento PropertyChanged.
- propertyName
- Nombre de la propiedad.
protected virtual void RaisePropertyChanged(object sender, PropertyChangedEventArgs args)
diagramElement.RaisePropertyChanged(sender, args)
Para llamar al evento PropertyChanged.
- sender
- Sender.
- args
- Argumentos.
protected virtual void RaisePropertyChanging(string propertyName)
diagramElement.RaisePropertyChanging(propertyName)
Para llamar al evento PropertyChanging.
- propertyName
- Nombre de la propiedad.
protected virtual void RaisePropertyChanging(object sender, PropertyChangingEventArgs args)
diagramElement.RaisePropertyChanging(sender, args)
Para llamar al evento PropertyChanging.
- sender
- Sender.
- args
- Argumentos.
protected void RaiseSocketChanged(DiagramSocket socket)
diagramElement.RaiseSocketChanged(socket)
Para llamar al evento SocketChanged.
- socket
- Socket.
protected void RemoveParam(IDiagramElementParam param)
diagramElement.RemoveParam(param)
Para quitar un parámetro.
- param
- Parámetro.
protected void RemoveSocket(DiagramSocket socket)
diagramElement.RemoveSocket(socket)
Para eliminar una conexión.
- socket
- Conexión.
protected void RemoveSockets(Func<DiagramSocket, bool> predicate, bool raiseSocketRemoved)
diagramElement.RemoveSockets(predicate, raiseSocketRemoved)
Para quitar múltiples tomas.
- predicate
- raiseSocketRemoved
- Raise SocketRemoved event.
protected virtual void RemoveSockets(bool raiseSocketRemoved)
diagramElement.RemoveSockets(raiseSocketRemoved)
Para eliminar todas las conexiones entrantes y salientes.
- raiseSocketRemoved
- Raise SocketRemoved event.
public void Reset()
diagramElement.Reset()
Para reiniciar el estado del elemento del diagrama.
protected void ResetFlushPriority()
diagramElement.ResetFlushPriority()
Reset FlushPriority.
public override void Save(SettingsStorage storage)
diagramElement.Save(storage)
Guardar configuración.
- storage
- Configuración de almacenamiento.
protected IDisposable SaveUndoState(object debugState)
result = diagramElement.SaveUndoState(debugState)
Guardar el estado para permitir el deshacer.
protected void SetElementName(string name)
diagramElement.SetElementName(name)
Establece el nombre del elemento.
- name
- Nombre.
public void Start(DateTime time)
diagramElement.Start(time)
Para comenzar por el algoritmo del elemento del diagrama.
Eventos
public event Action<DiagramElement, IUndoableEdit> CommittedUndoableOperation
diagramElement.CommittedUndoableOperation += handler
Cometieron una operación indomable.
public event Action<string> ParameterValueChanged
diagramElement.ParameterValueChanged += handler
El elemento de diagrama cambia el evento.
public event Action<DiagramSocketValue> ProcessOutput
diagramElement.ProcessOutput += handler
Nuevo evento de datos.
public event Action PropertiesChanged
diagramElement.PropertiesChanged += handler
El evento de cambio de propiedades disponibles.
public event PropertyChangedEventHandler PropertyChanged
diagramElement.PropertyChanged += handler
El elemento de diagrama valora el evento del cambio.
public event PropertyChangingEventHandler PropertyChanging
diagramElement.PropertyChanging += handler
El elemento de diagrama valora el cambio de evento.
public event Action<DiagramSocket> SocketAdded
diagramElement.SocketAdded += handler
El elemento de diagrama de conexión añadido evento.
public event Action<DiagramSocket> SocketChanged
diagramElement.SocketChanged += handler
La conexión del elemento del diagrama cambió el evento.
public event Action<DiagramSocket> SocketRemoved
diagramElement.SocketRemoved += handler
El elemento de conexión del diagrama se elimina el evento.
public event Action StartedUndoableOperation
diagramElement.StartedUndoableOperation += handler
Empecé a operar deshacerse.
Campos
protected const int FlushDisabled
value = DiagramElement.FlushDisabled
Valor para discapacitados FlushPriority.
protected const int FlushNormal
value = DiagramElement.FlushNormal
Valor normal para FlushPriority.