import { OcaCounter } from '../../types/OcaCounter.js'; import { OcaCounterSet } from '../../types/OcaCounterSet.js'; import { IOcaNetworkInterfaceAssignment, OcaNetworkInterfaceAssignment, } from '../../types/OcaNetworkInterfaceAssignment.js'; import { Arguments } from '../arguments.js'; import { PropertyEvent } from '../property_event.js'; import { RemoteDevice } from '../remote_device.js'; import { OcaRoot } from './OcaRoot.js'; /** * Base class for network applications * @extends OcaRoot * @class OcaNetworkApplication */ export declare class OcaNetworkApplication extends OcaRoot { /** * This event is emitted whenever Label changes. */ OnLabelChanged: PropertyEvent; /** * This event is emitted whenever NetworkInterfaceAssignments changes. */ OnNetworkInterfaceAssignmentsChanged: PropertyEvent< OcaNetworkInterfaceAssignment[] >; /** * This event is emitted whenever AdaptationData changes. */ OnAdaptationDataChanged: PropertyEvent; constructor(objectNumber: number, device: RemoteDevice); /** * Gets the value of the **Label** property. * * @method OcaNetworkApplication#GetLabel * @returns {Promise} * A promise which resolves to a single value of type ``string``. */ GetLabel(): Promise; /** * Sets the value of the **Label** property. * * @method OcaNetworkApplication#SetLabel * @param {string} Label * * @returns {Promise} */ SetLabel(Label: string): Promise; /** * Gets the value of the **Owner** property. * * @method OcaNetworkApplication#GetOwner * @returns {Promise} * A promise which resolves to a single value of type ``number``. */ GetOwner(): Promise; /** * Returns Role Path and ONo Path from the Root Block to this object. The * return value indicates whether the operation succeeded. * The return values of this method are * * - RolePath of type ``string[]`` * - ONoPath of type ``number[]`` * * @method OcaNetworkApplication#GetPath * @returns {Promise>} */ GetPath(): Promise>; /** * Gets the list of network interface assignments * * @method OcaNetworkApplication#GetNetworkInterfaceAssignments * @returns {Promise} * A promise which resolves to a single value of type :class:`OcaNetworkInterfaceAssignment[]`. */ GetNetworkInterfaceAssignments(): Promise; /** * Sets the list of network interface assignments * * @method OcaNetworkApplication#SetNetworkInterfaceAssignments * @param {IOcaNetworkInterfaceAssignment[]} Assignments * * @returns {Promise} */ SetNetworkInterfaceAssignments( Assignments: IOcaNetworkInterfaceAssignment[] ): Promise; /** * Gets the identifier of the Adaptation this network object implements. * * @method OcaNetworkApplication#GetAdaptationIdentifier * @returns {Promise} * A promise which resolves to a single value of type ``string``. */ GetAdaptationIdentifier(): Promise; /** * Gets the value of property **AdaptationData.** * * @method OcaNetworkApplication#GetAdaptationData * @returns {Promise} * A promise which resolves to a single value of type ``Uint8Array``. */ GetAdaptationData(): Promise; /** * Sets the value of property **AdaptationData.** * * @method OcaNetworkApplication#SetAdaptationData * @param {Uint8Array} Data * * @returns {Promise} */ SetAdaptationData(Data: Uint8Array): Promise; /** * Get this object's CounterSet. * * @method OcaNetworkApplication#GetCounterSet * @returns {Promise} * A promise which resolves to a single value of type :class:`OcaCounterSet`. */ GetCounterSet(): Promise; /** * Gets the given counter from this object's CounterSet. * * @method OcaNetworkApplication#GetCounter * @param {number} CounterID * * @returns {Promise} * A promise which resolves to a single value of type :class:`OcaCounter`. */ GetCounter(CounterID: number): Promise; /** * Adds a notifier **ONo** to the **Notifiers** list of the designated * Counter. * * @method OcaNetworkApplication#AttachCounterNotifier * @param {number} CounterID * @param {number} ONo * * @returns {Promise} */ AttachCounterNotifier(CounterID: number, ONo: number): Promise; /** * Removes the given notifier ONo from the **Notifiers** list of the * designated counter. * * @method OcaNetworkApplication#DetachCounterNotifier * @param {number} CounterID * @param {number} ONo * * @returns {Promise} */ DetachCounterNotifier(CounterID: number, ONo: number): Promise; /** * Reset this object's CounterSet. Sets all its counters to their specified * initial values. * * @method OcaNetworkApplication#ResetCounters * @returns {Promise} */ ResetCounters(): Promise; }