Class PortType<T>
Generic port type to simplify port creation.
Inherited Members
Namespace: Mechatronics.SystemGraph
Assembly: solution.dll
Syntax
[Serializable]
public class PortType<T> : IPortType
Type Parameters
| Name | Description |
|---|---|
| T | Data type underlying the port. |
Constructors
| Name | Description |
|---|---|
| PortType() | Creates the port and sets the exposed type. |
| PortType(T) | Creates a port with default value. |
Fields
| Name | Description |
|---|---|
| Data | The data field |
Properties
| Name | Description |
|---|---|
| Read | Read filtered data from the port. |
| ReadRaw | Read unfiltered data from the port. |
| Write | Write to the port and propagate to change event handlers and port filters. |
| WriteRaw | Write without port filters of change events. |
Methods
| Name | Description |
|---|---|
| CopyFrom(PortType<T>) | Copies from. |
| CreateFieldBox() | Creates the field box. |
| Propagate(double) | Propagate all signals |
| Ref() | Get a reference to the underlying data. Propagates change events. |
| SetOnChangeClockRisingEdge(bool) | Set the ports to callback on new data |
| Synchronize() | Synchronizes this instance. |
| ToString() | Converts the port data into a string. |
| TryGetValue() | Try to get the value on this port. |
| TrySetValue(object) | Try to set a value on this port if it is allowed |