File

src/models/devicemanager/device-manager.ts

Description

Serializable REDHAWK Device manager model

Extends

DeviceManagerRef

Implements

ISerializable

Index

Properties
Methods

Constructor

constructor()

Methods

deserialize
deserialize(input: any)

Deserializes a JSON object into this class

Parameters :
Name Type Optional Description
input any
Returns : this

Properties

devices
devices: resource.ResourceRefs
Type : resource.ResourceRefs

Devices listing

properties
properties: prop.PropertySet
Type : prop.PropertySet

Properties listing

services
services: resource.ResourceRefs
Type : resource.ResourceRefs

Services listing

import { ISerializable } from '../serialization/index';
import * as prop from '../property/index';
import * as resource from '../resource/index';

import { DeviceManagerRef } from './device-manager-ref';

/** 
 * Serializable REDHAWK Device manager model
 */
export class DeviceManager extends DeviceManagerRef implements ISerializable<DeviceManager> {
    /** Properties listing */
    properties: prop.PropertySet;
    /** Devices listing */
    devices: resource.ResourceRefs;
    /** Services listing */
    services: resource.ResourceRefs;

    /** Constructor */
    constructor() {
        super();
        this.properties = [];
        this.devices = [];
        this.services = [];
    }

    /** Deserializes a JSON object into this class */
    deserialize(input: any) {
        super.deserialize(input);
        this.properties = prop.deserializeProperties(input.properties);
        this.devices = resource.deserializeResourceRefs(input.devices);
        this.services = resource.deserializeResourceRefs(input.services);
        return this;
    }
}

results matching ""

    No results matching ""