UNPKG

@aptpod/iscp-ts

Version:

iSCP 2.0 client library for TypeScript

155 lines 4.33 kB
/** * データID付きのデータポイントのリストを表します。 * @category Data ID and Data Point */ export class DataPointGroup { constructor(init) { this.dataId = init.dataId; this.dataPoints = init.dataPoints; } } /** * アップストリームチャンクを表します。 * @category Upstream */ export class UpstreamChunk { constructor(init) { this.sequenceNumber = init.sequenceNumber; this.dataPointGroups = init.dataPointGroups; } } /** * アップストリームチャンクで送信されたデータポイントの処理結果を表します。 * @category Upstream */ export class UpstreamChunkResult { constructor(init) { this.sequenceNumber = init.sequenceNumber; this.resultCode = init.resultCode; this.resultString = init.resultString; } } /** * アップストリームチャンクに対する確認応答を表します。 * @category Upstream */ export class UpstreamChunkAck { constructor(init) { this.results = init.results; } } /** * ダウンストリームチャンクを表します。 * @category Downstream */ export class DownstreamChunk { constructor(init) { this.upstreamInfo = init.upstreamInfo; this.sequenceNumber = init.sequenceNumber; this.dataPointGroups = init.dataPointGroups; } } /** * ダウンストリームメタデータを表します。 * @category Metadata */ export class DownstreamMetadata { constructor(init) { this.sourceNodeId = init.sourceNodeId; this.metadata = init.metadata; } } /** * ダウンストリームコールを表します。 * @category E2E Call */ export class DownstreamCall { constructor(init) { this.callId = init.callId; this.sourceNodeId = init.sourceNodeId; this.name = init.name; this.type = init.type; this.payload = init.payload; } } /** * ダウンストリームリプライコールを表します。 * @category E2E Call */ export class DownstreamReplyCall { constructor(init) { this.requestCalId = init.requestCalId; this.sourceNodeId = init.sourceNodeId; this.name = init.name; this.type = init.type; this.payload = init.payload; } } /** * アップストリームコールを表します。 * @category E2E Call */ export class UpstreamCall { constructor(init) { this.destinationNodeId = init.destinationNodeId; this.name = init.name; this.type = init.type; this.payload = init.payload; } } /** * アップストリームリプライコールを表します。 * @category E2E Call */ export class UpstreamReplyCall { constructor(init) { this.requestCallId = init.requestCallId; this.destinationNodeId = init.destinationNodeId; this.name = init.name; this.type = init.type; this.payload = init.payload; } } /** * ダウンストリームの状態を表します。 * @category Downstream */ export class DownstreamState { constructor(init) { this.dataIdAliases = init.dataIdAliases; this.upstreamInfos = init.upstreamInfos; this.lastIssuedDataIdAlias = init.lastIssuedDataIdAlias; this.lastIssuedUpstreamInfoAlias = init.lastIssuedUpstreamInfoAlias; this.lastIssuedAckId = init.lastIssuedAckId; } } /** * アップストリームの状態を表します。 * @category Upstream */ export class UpstreamState { constructor(init) { this.dataIdAliases = init.dataIdAliases; this.totalDataPoints = init.totalDataPoints; this.lastIssuedSequenceNumber = init.lastIssuedSequenceNumber; this.dataPointsBuffer = init.dataPointsBuffer; } } /** * ログの出力レベルです。 * @category Enum * @enum */ export const LOG_LEVEL = { /** ログを出力しません。 */ NONE: 'none', /** 動作状況に関する詳細な情報を出力します。 */ DEBUG: 'debug', /** 実行時の何らかの注目すべき事象を出力します。 */ INFO: 'info', /** エラーではない例外的な事象を出力します。 */ WARNING: 'warning', /** エラーを出力します。 */ ERROR: 'error', }; //# sourceMappingURL=model.js.map