Author: ygrego Date: 2015-04-20 09:45:53 +0000 (Mon, 20 Apr 2015) New Revision: 1228 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1228 Log: Implementation of class "NetworkInterface". Added: oipf/js/impl/model/NetworkInterface.js Added: oipf/js/impl/model/NetworkInterface.js =================================================================== --- oipf/js/impl/model/NetworkInterface.js (rev 0) +++ oipf/js/impl/model/NetworkInterface.js 2015-04-20 09:45:53 UTC (rev 1228) @@ -0,0 +1,52 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +var NetworkInterface = Class.extend({ + /* + * Description: + * The IP address of the network interface, in dotted-quad notation for IPv4 + * or colon-hexadecimal notation for IPv6. This property SHALL take + * the value undefined if no IP address has been assigned. The IP address + * may be link local, private or global, depending on which address block it + * belongs to, as reserved by IANA. + * + * Visibility Type: readonly Integer + */ + ipAddress: null, + + /* + * Description: + * The colon-separated MAC address of the network interface. + * + * Visibility Type: readonly String + */ + macAddress: null, + + /* + * Description: + * Flag indicating whether the network interface is currently connected. + * + * Visibility Type: readonly Boolean + */ + connected: null, + + /* + * Description: + * Flag indicating whether the network interface is enabled. + * Setting this property SHALL enable or disable the network interface. + * + * Type: Boolean + */ + enabled: null, + + init: function(ipAddress, macAddress, connected, enabled) { + this.ipAddress= ipAddress; + this.macAddress= ipAddress; + this.connected= connected; + this.enabled= enabled; + } +}); +
participants (1)
-
ygregoï¼ users.nuiton.org