src/models/bulkio/sri.ts
Serializable REDHAWK SRI (Signal Related Information) Structure
Properties |
Methods |
deserialize | ||||||||
deserialize(input: any)
|
||||||||
Defined in src/models/bulkio/sri.ts:35
|
||||||||
Deserializes a JSON object into this class
Parameters :
Returns :
this
|
blocking |
blocking:
|
Type : boolean
|
Defined in src/models/bulkio/sri.ts:30
|
Flag specifying how the receiving port should handle overflows |
hversion |
hversion:
|
Type : number
|
Defined in src/models/bulkio/sri.ts:10
|
Stream SRI Header Version |
keywords |
keywords:
|
Type : Keywords
|
Defined in src/models/bulkio/sri.ts:32
|
Sequence of stream Keywords |
mode |
mode:
|
Type : number
|
Defined in src/models/bulkio/sri.ts:26
|
0 - Scalar, 1 - Complex (I, Q sequence, [I1, Q1, I2, Q2, ...]) |
streamID |
streamID:
|
Type : string
|
Defined in src/models/bulkio/sri.ts:28
|
Stream ID |
subsize |
subsize:
|
Type : number
|
Defined in src/models/bulkio/sri.ts:18
|
For contiguous data, 0, otherwise specifies number of elements in each frame |
xdelta |
xdelta:
|
Type : number
|
Defined in src/models/bulkio/sri.ts:14
|
Interval along primary axis |
xstart |
xstart:
|
Type : number
|
Defined in src/models/bulkio/sri.ts:12
|
Start of primary axis |
xunits |
xunits:
|
Type : number
|
Defined in src/models/bulkio/sri.ts:16
|
Units associated with primary axis |
ydelta |
ydelta:
|
Type : number
|
Defined in src/models/bulkio/sri.ts:22
|
Interval along secondary axis |
ystart |
ystart:
|
Type : number
|
Defined in src/models/bulkio/sri.ts:20
|
Start of secondary axis |
yunits |
yunits:
|
Type : number
|
Defined in src/models/bulkio/sri.ts:24
|
Units associated with secondary axis |
import { ISerializable } from '../serialization/index';
import { Keywords, deserializeKeywords } from './keyword';
/**
* Serializable REDHAWK SRI (Signal Related Information) Structure
*/
export class SRI implements ISerializable<SRI> {
/** Stream SRI Header Version*/
hversion: number;
/** Start of primary axis */
xstart: number;
/** Interval along primary axis */
xdelta: number;
/** Units associated with primary axis */
xunits: number;
/** For contiguous data, 0, otherwise specifies number of elements in each frame */
subsize: number;
/** Start of secondary axis */
ystart: number;
/** Interval along secondary axis */
ydelta: number;
/** Units associated with secondary axis */
yunits: number;
/** 0 - Scalar, 1 - Complex (I, Q sequence, [I1, Q1, I2, Q2, ...]) */
mode: number;
/** Stream ID */
streamID: string;
/** Flag specifying how the receiving port should handle overflows */
blocking: boolean;
/** Sequence of stream Keywords */
keywords: Keywords;
/** Deserializes a JSON object into this class */
deserialize(input: any) {
this.hversion = input.hversion;
this.xstart = input.xstart;
this.xdelta = input.xdelta;
this.xunits = input.xunits;
this.subsize = input.subsize;
this.ystart = input.ystart;
this.ydelta = input.ydelta;
this.yunits = input.yunits;
this.mode = input.mode;
this.streamID = input.streamID;
this.blocking = input.blocking;
this.keywords = deserializeKeywords(input.keywords);
return this;
}
}