11.07.2015 Views

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

Encyclopedia of Computer Science and Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

434 smart buildings <strong>and</strong> homesThis means “send the message + 1 to the object thatis referenced by the variable called Total.” This messagereferences the + method, one <strong>of</strong> the methods that numericobjects “underst<strong>and</strong>.” The object therefore adds 1 to itsvalue, <strong>and</strong> returns that value as a new object, which in turnis now referenced by the variable Total.A “program” in Smalltalk is simply a collection <strong>of</strong> objectswith the capabilities to carry out whatever processes arerequired. The objects <strong>and</strong> their associated variables makeup the “workspace,” which can be saved to disk periodically.For the Smalltalk programmer there is no distinctionbetween Smalltalk <strong>and</strong> the host computer’s operatingsystem. The operating system’s capabilities (such asfile h<strong>and</strong>ling) are provided within the Smalltalk system aspredefined objects. Kay envisaged Smalltalk as a completeenvironment that could be extended by users who were notnecessarily experienced programmers, <strong>and</strong> he designed itspioneering graphical user interface as a way to make it easyfor users to work with the system.Smalltalk includes a “virtual machine,” whose instructionsare then implemented in specific code for each majortype <strong>of</strong> computer system. Because <strong>of</strong> Smalltalk’s consistentstructure <strong>and</strong> ability to build everything up from objects,almost all <strong>of</strong> the Smalltalk system is written in Smalltalkitself, making it easy to transplant to a new computer oncethe machine-specific details are provided.Because <strong>of</strong> its elegance <strong>and</strong> consistency <strong>and</strong> its availabilityon personal computers, by the 1980s Smalltalk hadaroused considerable interest. The language has not beenwidely used for mainstream applications, in part becausethe mechanisms needed to kept track <strong>of</strong> classes <strong>and</strong> inheritance<strong>of</strong> methods are hard to implement as efficiently asthe simpler mechanisms used in traditional languages. Theapproach <strong>of</strong> building object-oriented features onto existinglanguages (as with developing C++ from C) had greaterappeal to many because <strong>of</strong> efficiency <strong>and</strong> a less steep learningcurve.Nevertheless, the conceptual power <strong>of</strong> Smalltalk hasmade it attractive for certain AI <strong>and</strong> complex simulationprojects, <strong>and</strong> it appeals to those who want a pure objectorientedapproach where an application can cleanly mirrora real-world situation. Smalltalk also remains a good choicefor teaching programming to children (<strong>and</strong> others). A versioncalled Squeak provides a rich environment <strong>of</strong> graphics<strong>and</strong> other functions. Squeak <strong>and</strong> a number <strong>of</strong> other Smalltalkimplementations are available for free download for anumber <strong>of</strong> different computer systems.Further ReadingDucasse, Stéphane. Squeak: Learn Programming with Robots. Berkeley,Calif.: Apress, 2005.Klimas, Edward J., Suzanne Skublics, <strong>and</strong> David A. Thomas. Smalltalkwith Style. Englewood Cliffs, N.J.: Prentice Hall, 1996.Lewis, Simon. The Art <strong>and</strong> <strong>Science</strong> <strong>of</strong> Smalltalk. Englewood Cliffs,N.J.: Prentice Hall, 1995.Smalltalk. Available online. URL: http://smalltalk.org. AccessedAugust 21, 2007.Squeak. Available online. URL: http://www.squeak.org/. AccessedAugust 21, 2007.smart buildings <strong>and</strong> homesA smart building, whether commercial space or a home, isone in which components ranging from HVAC (heating,ventilation, <strong>and</strong> air conditioning) to appliances, computers,communications, security, <strong>and</strong> entertainment systems areintegrated into a network for easy control.Some typical features <strong>of</strong> a smart building include thefollowing:• lighting that is controlled by time <strong>of</strong> day, scheduling,<strong>and</strong> occupancy sensors• temperature <strong>and</strong> air-flow sensors to determine theamount <strong>of</strong> cooling, heating, or fresh air needed• controls for central heating, hot water, <strong>and</strong> air conditioningsystems, optimizing efficiency <strong>and</strong> minimizingenergy use• alarms for intrusion, fire, carbon monoxide/dioxide,<strong>and</strong> other hazards• alarms indicating failure or unsafe operating conditionsfor various devices• integration <strong>of</strong> alarm <strong>and</strong> status messages withcommunications systems, enabling users to receivethem by e-mail, text message, phone, or othermeansUsing a secure link, the user can connect to the buildingvia mobile phone or perhaps Internet connection <strong>and</strong>give it comm<strong>and</strong>s, such as to turn the heating or porch lighton, close the drapes, <strong>and</strong> so on. The system can also let theremote user know who is at the door <strong>and</strong> allow for communication,or let them in.Smart <strong>of</strong>fice or other buildings use many <strong>of</strong> the sametechnologies as smart homes, but the priorities <strong>and</strong> emphasesmay be different. Smart buildings are more likely tobe centrally controlled <strong>and</strong> fully automated rather thanallowing individuals to interact with them. (Regulatory <strong>and</strong>safety requirements are also likely to be different <strong>and</strong> morecomplex.)Applications <strong>and</strong> QuestionsThe integrated controls in a smart house are potentiallyvery useful for disabled persons or seniors who have limitedmobility. Lighting could automatically be turned onas a person gets up from bed <strong>and</strong> goes to the bathroom, forexample. Appliances could be controlled remotely, <strong>and</strong> evencupboards or tables could be designed to raise or lower atthe touch <strong>of</strong> a button. (See disabled persons <strong>and</strong> computing<strong>and</strong> seniors <strong>and</strong> computing.) If such systems areeffective, their cost may be well worth the psychologicalbenefits <strong>of</strong> allowing people to remain in their homes, <strong>and</strong> incomparison to the cost <strong>of</strong> assisted living or residence facilities.Smart homes could also help parents monitor toddlersor small children as well as restrict them from enteringpotentially hazardous parts <strong>of</strong> the house.Critics <strong>of</strong> the smart-house concept point out that installing<strong>and</strong> integrating all the required equipment for a full

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!