src/models/domain/domain.ts
Serializable REDHAWK Domain model
Properties |
|
Methods |
constructor()
|
Defined in src/models/domain/domain.ts:25
|
deserialize | ||||||||
deserialize(input: any)
|
||||||||
Defined in src/models/domain/domain.ts:37
|
||||||||
Deserializes a JSON object into this class
Parameters :
Returns :
this
|
Public applications |
applications:
|
Type : resource.ResourceRefs
|
Defined in src/models/domain/domain.ts:19
|
Currently running applications |
Public deviceManagers |
deviceManagers:
|
Type : devmgr.DeviceManagerRefs
|
Defined in src/models/domain/domain.ts:23
|
Device Managers |
Public eventChannels |
eventChannels:
|
Type : Array<string>
|
Defined in src/models/domain/domain.ts:25
|
Active Event Channels |
Public id |
id:
|
Type : string
|
Defined in src/models/domain/domain.ts:15
|
Instance ID |
Public name |
name:
|
Type : string
|
Defined in src/models/domain/domain.ts:13
|
Unique name (used for fetching) |
Public properties |
properties:
|
Type : prop.PropertySet
|
Defined in src/models/domain/domain.ts:17
|
Properties |
Public waveforms |
waveforms:
|
Type : WaveformSADRefs
|
Defined in src/models/domain/domain.ts:21
|
Available Waveforms to launch (SADs) |
import { ISerializable } from '../serialization/index';
import * as prop from '../property/index';
import * as resource from '../resource/index';
import * as devmgr from '../devicemanager/index';
import { WaveformSADRefs, deserializeWaveformSADRefs } from '../waveform/index';
/**
* Serializable REDHAWK Domain model
*/
export class Domain implements ISerializable<Domain> {
/** Unique name (used for fetching) */
public name: string;
/** Instance ID */
public id: string;
/** Properties */
public properties: prop.PropertySet;
/** Currently running applications */
public applications: resource.ResourceRefs;
/** Available Waveforms to launch (SADs) */
public waveforms: WaveformSADRefs;
/** Device Managers */
public deviceManagers: devmgr.DeviceManagerRefs;
/** Active Event Channels */
public eventChannels: Array<string>;
/** Constructor */
constructor() {
this.properties = [];
this.applications = [];
this.waveforms = [];
this.deviceManagers = [];
this.eventChannels = [];
}
/** Deserializes a JSON object into this class */
deserialize(input: any) {
this.name = input.name;
this.id = input.id;
this.properties = prop.deserializeProperties(input.properties);
this.applications = resource.deserializeResourceRefs(input.applications);
this.waveforms = deserializeWaveformSADRefs(input.waveforms);
this.deviceManagers = devmgr.deserializeDeviceManagerRefs(input.deviceManagers);
this.eventChannels = input.eventChannels;
return this;
}
}