IoActor
open class IoActor : IoPoint
Defines meta information of an IO actor.
-
Undocumented
Declaration
Swift
override open class var objectType: String { get }
-
The semantic, application-specific data type of values to be consumed by the IO actor, such as Temperature, Notification, Task, etc. In order to be associated with an IO source their value types must match.
The property value must be a non-empty string. You should choose canonical names for value types to avoid naming collisions. For example, by following the naming convention for Java packages, such as
com.mydomain.myapp.Temperature
.Note that this value type is different from the underlying data format used by the IO source to publish IO data values. For example, an IO source for a temperature sensor could emit values as numbers or as a Value1D object with specific properties.
Declaration
Swift
public var valueType: String
-
Default initializer for an
IoActor
object.Declaration
Swift
public init(valueType: String, useRawIoValues: Bool? = false, updateRate: Int? = nil, externalRoute: String? = nil, name: String = "IoActorObject", objectType: String = IoActor.objectType, objectId: CoatyUUID = .init())
-
Undocumented
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Undocumented
Declaration
Swift
open override func encode(to encoder: Encoder) throws