//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_Controller.cs
//
// Contents: Controller is a superclass for grouping the miscellaneous control-related Devices that provide a classic bus master interface. Examples of Controllers are USBControllers, SerialControllers, and so on. The Controller class is an abstraction for Devices with a single protocol stack, which exist to control communications (data, control, and reset) to downstream devices. Note that a new abstract class (ProtocolController) has been created to model more complex interface controllers such as SCSI.
// This file was automatically generated from CIM_Controller.mof
//
//----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.Globalization;
using System.Xml.Serialization;
using System.IO;
using Intel.Manageability.WSManagement;
using Intel.Manageability.Cim.Untyped;
namespace Intel.Manageability.Cim.Typed
{
///
///Controller is a superclass for grouping the miscellaneous control-related Devices that provide a classic bus master interface. Examples of Controllers are USBControllers, SerialControllers, and so on. The Controller class is an abstraction for Devices with a single protocol stack, which exist to control communications (data, control, and reset) to downstream devices. Note that a new abstract class (ProtocolController) has been created to model more complex interface controllers such as SCSI.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Controller")]
[System.Xml.Serialization.XmlRootAttribute("CIM_Controller", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Controller", IsNullable=false)]
public class CIM_Controller : CIM_LogicalDevice
{
///
/// Default constructor.
///
public CIM_Controller() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_Controller(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_Controller(IWSManClient client): base(client)
{
}
///
/// Remove MaxNumberControlled field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveMaxNumberControlled()
{
RemoveField("MaxNumberControlled");
}
///
/// Is true if the field MaxNumberControlled exists in the current object,
/// otherwise is false.
///
public virtual bool MaxNumberControlledExist
{
get
{
return ContainsField("MaxNumberControlled");
}
}
///
/// Optional, Maximum number of directly addressable entities that are supported by this Controller. A value of 0 should be used if the number is unknown or unlimited.
///
[CimField(false, false)]
public virtual uint MaxNumberControlled
{
get
{
return uint.Parse(this["MaxNumberControlled"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("MaxNumberControlled",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove ProtocolDescription field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveProtocolDescription()
{
RemoveField("ProtocolDescription");
}
///
/// Is true if the field ProtocolDescription exists in the current object,
/// otherwise is false.
///
public virtual bool ProtocolDescriptionExist
{
get
{
return ContainsField("ProtocolDescription");
}
}
///
/// Optional, A free-form string that provides more information that is related to the ProtocolSupported by the Controller.
///
[CimField(false, false)]
public virtual string ProtocolDescription
{
get
{
return this.GetField("ProtocolDescription")[0];
}
set
{
this.SetOrAddField("ProtocolDescription",value);
}
}
///
/// Remove ProtocolSupported field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveProtocolSupported()
{
RemoveField("ProtocolSupported");
}
///
/// Is true if the field ProtocolSupported exists in the current object,
/// otherwise is false.
///
public virtual bool ProtocolSupportedExist
{
get
{
return ContainsField("ProtocolSupported");
}
}
///
/// Optional, The protocol used by the Controller to access controlled Devices.
///
[CimField(false, false)]
public virtual ushort ProtocolSupported
{
get
{
return ushort.Parse(this["ProtocolSupported"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ProtocolSupported",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove TimeOfLastReset field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveTimeOfLastReset()
{
RemoveField("TimeOfLastReset");
}
///
/// Is true if the field TimeOfLastReset exists in the current object,
/// otherwise is false.
///
public virtual bool TimeOfLastResetExist
{
get
{
return ContainsField("TimeOfLastReset");
}
}
///
/// Optional, Time of last reset of the Controller.
///
[CimField(false, false)]
public virtual CimDateTime TimeOfLastReset
{
get
{
return CimDateTime.Parse(this["TimeOfLastReset"][0]);
}
set
{
this.SetOrAddField("TimeOfLastReset",value.ToString());
}
}
///
/// Enumerate instances of CIM_Controller class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_Controller objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of CIM_Controller class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_Controller objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_Controller if it is singular.
/// Note: This method will succeed only if a single instance of the class exists.
///
/// WS-Management client
public static new void Delete(IWSManClient client)
{
CimBase.Delete(client);
}
///
/// Represents the keys of the CIM_Controller class.
///
public new class CimKeys : CIM_LogicalDevice.CimKeys
{
}
}
}