<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FLanguage_Basics%2FObject_Oriented_Design</id>
		<title>Java/Language Basics/Object Oriented Design - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FLanguage_Basics%2FObject_Oriented_Design"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Language_Basics/Object_Oriented_Design&amp;action=history"/>
		<updated>2026-04-22T09:52:44Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/Language_Basics/Object_Oriented_Design&amp;diff=7529&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Language_Basics/Object_Oriented_Design&amp;diff=7529&amp;oldid=prev"/>
				<updated>2010-06-01T06:47:34Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 06:47, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/Language_Basics/Object_Oriented_Design&amp;diff=7528&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Language_Basics/Object_Oriented_Design&amp;diff=7528&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:45Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Class Hierachy  ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
 * Copyright (c) Ian F. Darwin, http://www.darwinsys.ru/, 1996-2002.&lt;br /&gt;
 * All rights reserved. Software written by Ian F. Darwin and others.&lt;br /&gt;
 * $Id: LICENSE,v 1.8 2004/02/09 03:33:38 ian Exp $&lt;br /&gt;
 *&lt;br /&gt;
 * Redistribution and use in source and binary forms, with or without&lt;br /&gt;
 * modification, are permitted provided that the following conditions&lt;br /&gt;
 * are met:&lt;br /&gt;
 * 1. Redistributions of source code must retain the above copyright&lt;br /&gt;
 *    notice, this list of conditions and the following disclaimer.&lt;br /&gt;
 * 2. Redistributions in binary form must reproduce the above copyright&lt;br /&gt;
 *    notice, this list of conditions and the following disclaimer in the&lt;br /&gt;
 *    documentation and/or other materials provided with the distribution.&lt;br /&gt;
 *&lt;br /&gt;
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS&amp;quot;&amp;quot;&lt;br /&gt;
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED&lt;br /&gt;
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR&lt;br /&gt;
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS&lt;br /&gt;
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR&lt;br /&gt;
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF&lt;br /&gt;
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS&lt;br /&gt;
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN&lt;br /&gt;
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)&lt;br /&gt;
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE&lt;br /&gt;
 * POSSIBILITY OF SUCH DAMAGE.&lt;br /&gt;
 * &lt;br /&gt;
 * Java, the Duke mascot, and all variants of Sun&amp;quot;s Java &amp;quot;steaming coffee&lt;br /&gt;
 * cup&amp;quot; logo are trademarks of Sun Microsystems. Sun&amp;quot;s, and James Gosling&amp;quot;s,&lt;br /&gt;
 * pioneering role in inventing and promulgating (and standardizing) the Java &lt;br /&gt;
 * language and environment is gratefully acknowledged.&lt;br /&gt;
 * &lt;br /&gt;
 * The pioneering role of Dennis Ritchie and Bjarne Stroustrup, of AT&amp;amp;T, for&lt;br /&gt;
 * inventing predecessor languages C and C++ is also gratefully acknowledged.&lt;br /&gt;
 */&lt;br /&gt;
import java.util.*;&lt;br /&gt;
/** Part of a main program using Shape objects */&lt;br /&gt;
public class ClassShapeMain {&lt;br /&gt;
  Collection allShapes;  // created in a Constructor, not shown&lt;br /&gt;
  /** Iterate over all the Shapes, getting their areas */&lt;br /&gt;
  public double totalAreas() {&lt;br /&gt;
    Iterator it = allShapes.iterator();&lt;br /&gt;
    double total = 0.0;&lt;br /&gt;
    while (it.hasNext()) {&lt;br /&gt;
      Shape s = (Shape)it.next();&lt;br /&gt;
      total += s.ruputeArea();&lt;br /&gt;
    }&lt;br /&gt;
    return total;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
class Circle extends Shape {&lt;br /&gt;
  double radius;&lt;br /&gt;
  public double computeArea() {&lt;br /&gt;
    return Math.PI * radius * radius;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
class Rectangle extends Shape {&lt;br /&gt;
  double width, height;&lt;br /&gt;
  public double computeArea() {&lt;br /&gt;
    return width * height;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
abstract class Shape {&lt;br /&gt;
  protected int x, y;&lt;br /&gt;
  public abstract double computeArea();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hierarchy 2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
 * Copyright (c) Ian F. Darwin, http://www.darwinsys.ru/, 1996-2002.&lt;br /&gt;
 * All rights reserved. Software written by Ian F. Darwin and others.&lt;br /&gt;
 * $Id: LICENSE,v 1.8 2004/02/09 03:33:38 ian Exp $&lt;br /&gt;
 *&lt;br /&gt;
 * Redistribution and use in source and binary forms, with or without&lt;br /&gt;
 * modification, are permitted provided that the following conditions&lt;br /&gt;
 * are met:&lt;br /&gt;
 * 1. Redistributions of source code must retain the above copyright&lt;br /&gt;
 *    notice, this list of conditions and the following disclaimer.&lt;br /&gt;
 * 2. Redistributions in binary form must reproduce the above copyright&lt;br /&gt;
 *    notice, this list of conditions and the following disclaimer in the&lt;br /&gt;
 *    documentation and/or other materials provided with the distribution.&lt;br /&gt;
 *&lt;br /&gt;
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS&amp;quot;&amp;quot;&lt;br /&gt;
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED&lt;br /&gt;
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR&lt;br /&gt;
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS&lt;br /&gt;
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR&lt;br /&gt;
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF&lt;br /&gt;
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS&lt;br /&gt;
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN&lt;br /&gt;
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)&lt;br /&gt;
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE&lt;br /&gt;
 * POSSIBILITY OF SUCH DAMAGE.&lt;br /&gt;
 * &lt;br /&gt;
 * Java, the Duke mascot, and all variants of Sun&amp;quot;s Java &amp;quot;steaming coffee&lt;br /&gt;
 * cup&amp;quot; logo are trademarks of Sun Microsystems. Sun&amp;quot;s, and James Gosling&amp;quot;s,&lt;br /&gt;
 * pioneering role in inventing and promulgating (and standardizing) the Java &lt;br /&gt;
 * language and environment is gratefully acknowledged.&lt;br /&gt;
 * &lt;br /&gt;
 * The pioneering role of Dennis Ritchie and Bjarne Stroustrup, of AT&amp;amp;T, for&lt;br /&gt;
 * inventing predecessor languages C and C++ is also gratefully acknowledged.&lt;br /&gt;
 */&lt;br /&gt;
public class Customer extends Person {&lt;br /&gt;
  private int customerNumber;&lt;br /&gt;
  public Customer(String firstName, String lastName, int number) {&lt;br /&gt;
    super(firstName, lastName);&lt;br /&gt;
    setCustomerNumber(number);&lt;br /&gt;
  }&lt;br /&gt;
  public void setCustomerNumber(int n) {&lt;br /&gt;
    if (n &amp;lt; 1)&lt;br /&gt;
      throw new IllegalArgumentException(&amp;quot;Invalid customer number &amp;quot; + n);&lt;br /&gt;
    customerNumber = n;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
class Person {&lt;br /&gt;
  String firstName;&lt;br /&gt;
  String lastName;&lt;br /&gt;
  Person(String firstName, String lastName) {&lt;br /&gt;
    this.firstName = firstName;&lt;br /&gt;
    this.lastName = lastName;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
class Employee extends Person {&lt;br /&gt;
  private short deptCode;&lt;br /&gt;
  private int staffNumber;&lt;br /&gt;
  public Employee(String firstName, String lastName, short dept, int number) {&lt;br /&gt;
    super(firstName, lastName);&lt;br /&gt;
    setDeptCode(dept);&lt;br /&gt;
    setStaffID(number);&lt;br /&gt;
  }&lt;br /&gt;
  public void setDeptCode(short dept) {&lt;br /&gt;
    deptCode = dept;&lt;br /&gt;
  }&lt;br /&gt;
  public void setStaffID(int number) {&lt;br /&gt;
    if (number &amp;lt; 1)&lt;br /&gt;
      throw new IllegalArgumentException(&amp;quot;Invalid staff number &amp;quot; +&lt;br /&gt;
        number);&lt;br /&gt;
    staffNumber = number;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== This class shows how we might control the objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
 * Copyright (c) Ian F. Darwin, http://www.darwinsys.ru/, 1996-2002.&lt;br /&gt;
 * All rights reserved. Software written by Ian F. Darwin and others.&lt;br /&gt;
 * $Id: LICENSE,v 1.8 2004/02/09 03:33:38 ian Exp $&lt;br /&gt;
 *&lt;br /&gt;
 * Redistribution and use in source and binary forms, with or without&lt;br /&gt;
 * modification, are permitted provided that the following conditions&lt;br /&gt;
 * are met:&lt;br /&gt;
 * 1. Redistributions of source code must retain the above copyright&lt;br /&gt;
 *    notice, this list of conditions and the following disclaimer.&lt;br /&gt;
 * 2. Redistributions in binary form must reproduce the above copyright&lt;br /&gt;
 *    notice, this list of conditions and the following disclaimer in the&lt;br /&gt;
 *    documentation and/or other materials provided with the distribution.&lt;br /&gt;
 *&lt;br /&gt;
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS&amp;quot;&amp;quot;&lt;br /&gt;
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED&lt;br /&gt;
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR&lt;br /&gt;
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS&lt;br /&gt;
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR&lt;br /&gt;
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF&lt;br /&gt;
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS&lt;br /&gt;
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN&lt;br /&gt;
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)&lt;br /&gt;
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE&lt;br /&gt;
 * POSSIBILITY OF SUCH DAMAGE.&lt;br /&gt;
 * &lt;br /&gt;
 * Java, the Duke mascot, and all variants of Sun&amp;quot;s Java &amp;quot;steaming coffee&lt;br /&gt;
 * cup&amp;quot; logo are trademarks of Sun Microsystems. Sun&amp;quot;s, and James Gosling&amp;quot;s,&lt;br /&gt;
 * pioneering role in inventing and promulgating (and standardizing) the Java &lt;br /&gt;
 * language and environment is gratefully acknowledged.&lt;br /&gt;
 * &lt;br /&gt;
 * The pioneering role of Dennis Ritchie and Bjarne Stroustrup, of AT&amp;amp;T, for&lt;br /&gt;
 * inventing predecessor languages C and C++ is also gratefully acknowledged.&lt;br /&gt;
 */&lt;br /&gt;
/**&lt;br /&gt;
 * BuildingManagement - control an energy-saving building.&lt;br /&gt;
 * This class shows how we might control the objects in an office&lt;br /&gt;
 * that can safely be powered off at nighttime to save energy - lots of&lt;br /&gt;
 * it, when applied to a large office!&lt;br /&gt;
 */&lt;br /&gt;
public class BuildingManagement {&lt;br /&gt;
  Asset things[] = new Asset[24];  &lt;br /&gt;
  int numItems = 0;&lt;br /&gt;
  /** goodNight is called from a timer Thread at 2200, or when we&lt;br /&gt;
   * get the &amp;quot;shutdown&amp;quot; command from the security guard.&lt;br /&gt;
   */&lt;br /&gt;
  public void goodNight() {&lt;br /&gt;
    for (int i=0; i&amp;lt;things.length; i++)&lt;br /&gt;
      if (things[i] instanceof PowerSwitchable)&lt;br /&gt;
        ((PowerSwitchable)things[i]).powerDown();&lt;br /&gt;
  }&lt;br /&gt;
  // goodMorning() would be the same, but call each one&amp;quot;s powerUp().&lt;br /&gt;
  /** Add a Asset to this building */&lt;br /&gt;
  public void add(Asset thing) {  &lt;br /&gt;
    System.out.println(&amp;quot;Adding &amp;quot; + thing);&lt;br /&gt;
    things[numItems++] = thing;&lt;br /&gt;
  }&lt;br /&gt;
  /** The main program */&lt;br /&gt;
  public static void main(String[] av) {&lt;br /&gt;
    BuildingManagement b1 = new BuildingManagement();&lt;br /&gt;
    b1.add(new RoomLights(101));  // control lights in room 101&lt;br /&gt;
    b1.add(new EmergencyLight(101));  // and emerg. lights.&lt;br /&gt;
    // add the computer on desk#4 in room 101&lt;br /&gt;
    b1.add(new ComputerCPU(10104));&lt;br /&gt;
    // and its monitor&lt;br /&gt;
    b1.add(new ComputerMonitor(10104));&lt;br /&gt;
    // time passes, and the sun sets...&lt;br /&gt;
    b1.goodNight();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
abstract class BuildingLight extends BuildingAsset {&lt;br /&gt;
  // generic info on lighting: flourescent/incandescent, ...&lt;br /&gt;
  BuildingLight(int roomNumber) {&lt;br /&gt;
    super(roomNumber);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
abstract class ComputerAsset extends Asset {&lt;br /&gt;
  // generic computer component stuff here: location, owner, &lt;br /&gt;
  // warranty expiration date :-), etc.&lt;br /&gt;
  int deskNumber;&lt;br /&gt;
  ComputerAsset(int deskNumber) {&lt;br /&gt;
    this.deskNumber = deskNumber;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
class ComputerCPU extends ComputerAsset {&lt;br /&gt;
  // information about CPU (P5, P6, ...), RAM, etc.&lt;br /&gt;
  ComputerCPU(int deskNumber) {&lt;br /&gt;
    super(deskNumber);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
/** Asset is the top level of every Asset */&lt;br /&gt;
abstract class Asset extends Object {&lt;br /&gt;
  // No fields or methods; it&amp;quot;s just the base of everything.&lt;br /&gt;
}&lt;br /&gt;
class EmergencyLight extends BuildingLight {  // NEVER SWITCH OFF&lt;br /&gt;
  EmergencyLight(int roomNumber) {&lt;br /&gt;
    super(roomNumber);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
 * PowerSwitchable is an Interface that will be implemented by things&lt;br /&gt;
 * that can safely be turned off at night. Could use X10(tm) or BlueTooth&lt;br /&gt;
 * or 802.11 or any similar network technology to turn things on or off.&lt;br /&gt;
 *&lt;br /&gt;
 * @author  Ian F. Darwin&lt;br /&gt;
 */&lt;br /&gt;
interface PowerSwitchable {&lt;br /&gt;
  /** The technique for turning this unit off */&lt;br /&gt;
  public void powerDown();&lt;br /&gt;
  /** The technique for turning this unit on */&lt;br /&gt;
  public void powerUp();&lt;br /&gt;
}&lt;br /&gt;
class RoomLights extends BuildingLight implements PowerSwitchable {&lt;br /&gt;
  RoomLights(int roomNumber) {&lt;br /&gt;
    super(roomNumber);&lt;br /&gt;
  }&lt;br /&gt;
  public void powerDown() {&lt;br /&gt;
    System.out.println(&amp;quot;Dousing lights in room &amp;quot; + room);&lt;br /&gt;
  }&lt;br /&gt;
  public void powerUp() {&lt;br /&gt;
    System.out.println(&amp;quot;Lighting lights in room &amp;quot; + room);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
/** The top level of everything that is permanently part of the building */&lt;br /&gt;
abstract class BuildingAsset extends Asset {&lt;br /&gt;
  protected int room;&lt;br /&gt;
  public BuildingAsset(int room) {&lt;br /&gt;
    this.room = room;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
class ComputerMonitor extends ComputerAsset implements PowerSwitchable {&lt;br /&gt;
  ComputerMonitor(int roomNumber) {&lt;br /&gt;
    super(roomNumber);&lt;br /&gt;
  }&lt;br /&gt;
  public void powerDown() {&lt;br /&gt;
    System.out.println(&amp;quot;Dousing monitor at desk &amp;quot; + deskNumber);&lt;br /&gt;
    // send the code to the Monitor&amp;quot;s X10 box to shut it off&lt;br /&gt;
  }&lt;br /&gt;
  public void powerUp() {&lt;br /&gt;
    System.out.println(&amp;quot;Warming up monitor at desk &amp;quot; + deskNumber);&lt;br /&gt;
    // send the code to the Monitor&amp;quot;s X10 box to turn it on&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>