예제 #1
0
파일: RnetZone.cs 프로젝트: wasabii/rnet
        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        internal RnetZone(RnetController controller, RnetZoneId id)
            : base(controller.Bus)
        {
            Contract.Requires<ArgumentNullException>(controller != null);
            RnetTraceSource.Default.TraceInformation("RnetZone:ctor Id={0}", (int)id);

            this.controller = controller;
            this.id = id;
            this.devices = new RnetZoneDeviceCollection(this);
        }
예제 #2
0
파일: RnetBus.cs 프로젝트: wasabii/rnet
 /// <summary>
 /// Gets a handle to the device given the specified device id.
 /// </summary>
 /// <param name="controllerId"></param>
 /// <param name="zoneId"></param>
 /// <param name="keypadId"></param>
 /// <returns></returns>
 public RnetDevice this[RnetControllerId controllerId, RnetZoneId zoneId, RnetKeypadId keypadId]
 {
     get { return GetOrCreateDevice(new RnetDeviceId(controllerId, zoneId, keypadId)); }
 }