-
Notifications
You must be signed in to change notification settings - Fork 2
OTPModule
OTP Module
public protocol OTPModule An OTP Module contains specific transform information about an OTPPoint such as position, rotation and hierarchy.
Implementors providing their own module types must implement all of these requirements for creating, sending and parsing received modules of that type.
An instance accessor of the static module identifier.
public var moduleIdentifier: OTPModuleIdentifier Uniquely identifies the module using an OTPModuleIdentifier.
static var identifier: OTPModuleIdentifier The size of the module's data in bytes.
static var dataLength: OTPPDULength The total size of the module in bytes, including identifiers and length.
static var moduleLength: OTPPDULength A human-readable log description of this module.
var logDescription: String Initializes this OTPModule with default values.
init()Creates a Module as Data.
func createAsData() -> DataThe OTPModule as a Data object.
Attempts to create an OTPModule from the data.
static func parse(fromData data: Data) throws -> (module: Self, length: OTPPDULength)- data: The data to be parsed.
An error of type ModuleLayerValidationError.
A valid OTPModule and the length of the PDU.
Merges an arrray of modules.
static func merge(modules: [OTPModule]) -> (module: Self?, excludePoint: Bool)- modules: The
OTPModules to be merged.
An optional OTPModule of this type, and whether to exclude the OTPPoint due to a mismatch.
Calculates whether this module is considered equal to another one.
func isEqualToModule(_ module: OTPModule) -> Bool- module: The
OTPModuleto be compared against.
Whether these OTPModules are considered equal.
Generated at 2021-09-01T18:46:51+0000 using swift-doc 1.0.0-rc.1.
Types
- ComponentSocketError
- OTPAddress
- OTPComponentState
- OTPConsumer
- OTPConsumerStatus
- OTPIPMode
- OTPModuleIdentifier
- OTPModulePosition
- OTPModulePosition.Scaling
- OTPModulePositionVelAccel
- OTPModuleReferenceFrame
- OTPModuleRotation
- OTPModuleRotationVelAccel
- OTPModuleScale
- OTPPoint
- OTPPointValidationError
- OTPProducer
- OTPProducerStatus