1.1 --- a/Hardware/Mainboard/Mainboard.cs Thu May 06 19:20:38 2010 +0000
1.2 +++ b/Hardware/Mainboard/Mainboard.cs Sun May 09 16:22:13 2010 +0000
1.3 @@ -47,7 +47,7 @@
1.4 private string name;
1.5 private Image icon;
1.6
1.7 - private LPCGroup lpcGroup;
1.8 + private LPCIO lpcGroup;
1.9
1.10 public Mainboard() {
1.11 this.smbios = new SMBIOS();
1.12 @@ -68,7 +68,7 @@
1.13 }
1.14
1.15 this.icon = Utilities.EmbeddedResources.GetImage("mainboard.png");
1.16 - this.lpcGroup = new LPCGroup();
1.17 + this.lpcGroup = new LPCIO();
1.18 }
1.19
1.20 public string Name {
1.21 @@ -97,9 +97,7 @@
1.22
1.23 public void Update() { }
1.24
1.25 - public void Close() {
1.26 - lpcGroup.Close();
1.27 - }
1.28 + public void Close() { }
1.29
1.30 public IHardware[] SubHardware {
1.31 get { return lpcGroup.Hardware; }
1.32 @@ -113,5 +111,14 @@
1.33 public event SensorEventHandler SensorAdded;
1.34 public event SensorEventHandler SensorRemoved;
1.35 #pragma warning restore 67
1.36 +
1.37 + public void Accept(IVisitor visitor) {
1.38 + visitor.VisitHardware(this);
1.39 + }
1.40 +
1.41 + public void Traverse(IVisitor visitor) {
1.42 + foreach (IHardware hardware in lpcGroup.Hardware)
1.43 + hardware.Accept(visitor);
1.44 + }
1.45 }
1.46 }