ActionPortModel Class

Port for blazor diagram

Definition

Namespace: MobileTrack.Web.Components.Models.ActionFlows
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class ActionPortModel : PortModel, 
	IHasDefaultValue
Inheritance
Object    Model    PortModel    ActionPortModel
Implements
IHasDefaultValue

Remarks

As a data type we use PortDto; this model is for use within the Blazor diagram itself.

Constructors

ActionPortModel(NodeModel, PortDto, ActionPortModel) Generates a new port model from a PortDto, usually when we are loading a node from the database.
ActionPortModel(NodeModel, Boolean, ParameterType, ActionFlowPortType, IconColor, IconName, String, ActionPortModel) Constructor for when we are creating new ports for new nodes.

Properties

AssignedType The type assigned by the user; for example, if PropertyType is IIdLabel and this is an input port, and the user attaches it to a DeviceDto, then this assigned type will be DeviceDto. This port can then assign an output port to use the same assigned type.
DefaultValue The default value assigned to this object.
DefaultValueBoolWrapper Wrapper if the port handles a Boolean value, so that the user can set a default boolean input value if no connections are needed.
DefaultValueDateTimeWrapper Wrapper if the port handles a DateTime value, so that the user can set a default datetime input value if no connections are needed.
DefaultValueDoubleWrapper Wrapper if the port handles a Double value, so that the user can set a default double input value if no connections are needed.
DefaultValueStringWrapper Wrapper if the port handles a String value, so that the user can set a default string input value if no connections are needed.
IsInput if the port is an input port
Label Relevant for parameters, which are given names by the user.
PortColor Color for the icon on the port.
PortIcon Icon for the port to display.
PortType Node label
PropertyTypeType of the port

Methods

CanAttachTo Allow linking between two ports if one is In and the other is Out
(Overrides PortModel.CanAttachTo(ILinkable))

Events

OnDefaultValueChanged Invoked when the user changes the default value of a port.

Extension Methods

AssignDefaultIfNotProper Assigns the default value to the object if it's not a valid value.
(Defined by DiagramsFactory)

See Also