Пример #1
0
 /// <summary>
 /// Creates a new instance of the <see cref="Device">Device</see> class given some metadata.
 /// </summary>
 /// <param name="metadata">The desired metadata for this Device</param>
 public Device(int?tenantId) : base()
 {
     TenantId          = tenantId;
     CurrentLocation   = new SpaceTimeInformation();
     PreviousLocations = new List <SpaceTimeInformation>();
     Power             = new DevicePower();
 }
Пример #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="Device">Device</see> class given a key, some metadata, and its current and previous locations.
 /// </summary>
 /// <param name="key">The unique identifier for this Device</param>
 /// <param name="metadata">The desired metadata for this Device</param>
 /// <param name="currentLocation">The current physical location of this device</param>
 /// <param name="previousLocations">The previous physical location(s) of this device</param>
 public Device(int?tenantId, TIdType id, SpaceTimeInformation currentLocation, IList <SpaceTimeInformation> previousLocations)
     :  base(id)
 {
     CurrentLocation   = currentLocation;
     PreviousLocations = previousLocations;
     Power             = new DevicePower();
 }
Пример #3
0
 /// <summary>
 /// Creates a new instance of the <see cref="Device">Device</see> class given a key, metadata, its current location, and its power level.
 /// </summary>
 /// <param name="id">The unique identifier for this Device</param>
 /// <param name="metadata">The desired metadata for this Device</param>
 /// <param name="currentLocation">The current physical location of this device</param>
 /// <param name="power">The current power level of this device</param>
 public Device(int?tenantId, TIdType id, SpaceTimeInformation currentLocation, DevicePower power) :
     base()
 {
     Id                = id;
     TenantId          = tenantId;
     CurrentLocation   = currentLocation;
     PreviousLocations = new List <SpaceTimeInformation>();
     Power             = power;
 }
Пример #4
0
 /// <summary>
 /// Creates a new instance of the <see cref="Device">Device</see> class given some metadata.
 /// </summary>
 /// <param name="metadata">The desired metadata for this Device</param>
 public Device(int?tenantId, TIdType id, string culture) : base(id, culture)
 {
     Id                = id;
     TenantId          = tenantId;
     Culture           = culture;
     CurrentLocation   = new SpaceTimeInformation();
     PreviousLocations = new List <SpaceTimeInformation>();
     Power             = new DevicePower();
 }
Пример #5
0
 /// <summary> 
 /// Initializes a new instance of the <see cref="Device">Device</see> class
 /// </summary>
 public Device() : base()
 {
     CurrentLocation   = new SpaceTimeInformation();
     PreviousLocations = new List <SpaceTimeInformation>();
     Power             = new DevicePower();
 }