import { OcaCounter } from '../../types/OcaCounter.js'; import { OcaCounterSet } from '../../types/OcaCounterSet.js'; import { IOcaNetworkInterfaceCommand } from '../../types/OcaNetworkInterfaceCommand.js'; import { OcaNetworkInterfaceStatus } from '../../types/OcaNetworkInterfaceStatus.js'; import { Arguments } from '../arguments.js'; import { PropertyEvent } from '../property_event.js'; import { RemoteDevice } from '../remote_device.js'; import { OcaRoot } from './OcaRoot.js'; /** * Represents the device's connection to a data network. * @extends OcaRoot * @class OcaNetworkInterface */ export declare class OcaNetworkInterface extends OcaRoot { /** * This event is emitted whenever Label changes. */ OnLabelChanged: PropertyEvent; /** * This event is emitted whenever Enabled changes. */ OnEnabledChanged: PropertyEvent; /** * This event is emitted whenever SystemIoInterfaceName changes. */ OnSystemIoInterfaceNameChanged: PropertyEvent; /** * This event is emitted whenever GroupID changes. */ OnGroupIDChanged: PropertyEvent; /** * This event is emitted whenever Precedence changes. */ OnPrecedenceChanged: PropertyEvent; /** * This event is emitted whenever AdaptationIdentifier changes. */ OnAdaptationIdentifierChanged: PropertyEvent; /** * This event is emitted whenever ActiveNetworkSettings changes. */ OnActiveNetworkSettingsChanged: PropertyEvent; /** * This event is emitted whenever TargetNetworkSettings changes. */ OnTargetNetworkSettingsChanged: PropertyEvent; /** * This event is emitted whenever NetworkSettingsPending changes. */ OnNetworkSettingsPendingChanged: PropertyEvent; /** * This event is emitted whenever Status changes. */ OnStatusChanged: PropertyEvent; /** * This event is emitted whenever ErrorCode changes. */ OnErrorCodeChanged: PropertyEvent; constructor(objectNumber: number, device: RemoteDevice); /** * Gets the value of the **Label** property. * * @method OcaNetworkInterface#GetLabel * @returns {Promise} * A promise which resolves to a single value of type ``string``. */ GetLabel(): Promise; /** * Sets the value of the **Label** property. * * @method OcaNetworkInterface#SetLabel * @param {string} Label * * @returns {Promise} */ SetLabel(Label: string): Promise; /** * Gets the value of the **Owner** property. * * @method OcaNetworkInterface#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 OcaNetworkInterface#GetPath * @returns {Promise>} */ GetPath(): Promise>; /** * Gets the value of the **Enabled** property. * * @method OcaNetworkInterface#GetEnabled * @returns {Promise} * A promise which resolves to a single value of type ``boolean``. */ GetEnabled(): Promise; /** * Sets the value of the **Enabled** property. * * @method OcaNetworkInterface#SetEnabled * @param {boolean} Enabled * * @returns {Promise} */ SetEnabled(Enabled: boolean): Promise; /** * Gets the system I/O interface name. * * @method OcaNetworkInterface#GetSystemIoInterfaceName * @returns {Promise} * A promise which resolves to a single value of type ``string``. */ GetSystemIoInterfaceName(): Promise; /** * Sets the system I/O interface name. * * @method OcaNetworkInterface#SetSystemIoInterfaceName * @param {string} Identifier * * @returns {Promise} */ SetSystemIoInterfaceName(Identifier: string): Promise; /** * Gets the network group ID. Returns value of zero if this network does not * belong to a group. * * @method OcaNetworkInterface#GetGroupID * @returns {Promise} * A promise which resolves to a single value of type ``number``. */ GetGroupID(): Promise; /** * Sets the network group ID. An ID value of zero means this network interface * does not belong to a group. * * @method OcaNetworkInterface#SetGroupID * @param {number} Id * * @returns {Promise} */ SetGroupID(Id: number): Promise; /** * Gets the value of the **Precedence** property. * * @method OcaNetworkInterface#GetPrecedence * @returns {Promise} * A promise which resolves to a single value of type ``number``. */ GetPrecedence(): Promise; /** * Sets the value of the **Precedence** property. * * @method OcaNetworkInterface#SetPrecedence * @param {number} Precedence * * @returns {Promise} */ SetPrecedence(Precedence: number): Promise; /** * Gets the identifier of the Adaptation this network object implements. * * @method OcaNetworkInterface#GetAdaptationIdentifier * @returns {Promise} * A promise which resolves to a single value of type ``string``. */ GetAdaptationIdentifier(): Promise; /** * Gets the value of property **ActiveNetworkSettings.** * * @method OcaNetworkInterface#GetActiveNetworkSettings * @returns {Promise} * A promise which resolves to a single value of type ``Uint8Array``. */ GetActiveNetworkSettings(): Promise; /** * Gets the value of property **TargetNetworkSettings.** * * @method OcaNetworkInterface#GetTargetNetworkSettings * @returns {Promise} * A promise which resolves to a single value of type ``Uint8Array``. */ GetTargetNetworkSettings(): Promise; /** * Sets the value of property **TargetNetworkSettings.** * * @method OcaNetworkInterface#SetTargetNetworkSettings * @param {Uint8Array} Settings * * @returns {Promise} */ SetTargetNetworkSettings(Settings: Uint8Array): Promise; /** * Gets the value of property **NetworkSettingsPending.** * * @method OcaNetworkInterface#GetNetworkSettingsPending * @returns {Promise} * A promise which resolves to a single value of type ``boolean``. */ GetNetworkSettingsPending(): Promise; /** * Gets the network's operational status. * * @method OcaNetworkInterface#GetStatus * @returns {Promise} * A promise which resolves to a single value of type :class:`OcaNetworkInterfaceStatus`. */ GetStatus(): Promise; /** * Gets the most recent error code. * * @method OcaNetworkInterface#GetErrorCode * @returns {Promise} * A promise which resolves to a single value of type ``number``. */ GetErrorCode(): Promise; /** * Get this object's CounterSet. * * @method OcaNetworkInterface#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 OcaNetworkInterface#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** property of the designated * counter. * * @method OcaNetworkInterface#AttachCounterNotifier * @param {number} CounterID * @param {number} ONo * * @returns {Promise} */ AttachCounterNotifier(CounterID: number, ONo: number): Promise; /** * Removes given notifier ONo from the **Notifiers** property of the * designated counter. * * @method OcaNetworkInterface#DetachCounterNotifier * @param {number} CounterID * @param {number} ONo * * @returns {Promise} */ DetachCounterNotifier(CounterID: number, ONo: number): Promise; /** * Resets this object's counterset. Sets all counters to their specified * default values. * * @method OcaNetworkInterface#ResetCounters * @returns {Promise} */ ResetCounters(): Promise; /** * Controls the network interface. * * @method OcaNetworkInterface#ApplyCommand * @param {IOcaNetworkInterfaceCommand} Command * * @returns {Promise} */ ApplyCommand(Command: IOcaNetworkInterfaceCommand): Promise; }