livespace.services.entities
Class ComputerEntity

java.lang.Object
  extended by dsto.dfc.databeans.AbstractDataObject
      extended by dsto.dfc.databeans.SimpleDataObject
          extended by dsto.dfc.databeans.FancyDataObject
              extended by livespace.services.Entity
                  extended by livespace.services.entities.ComputerEntity
All Implemented Interfaces:
IDataObject, IDataObjectChildListener, Cloneable

public class ComputerEntity
extends Entity

Represents a computer within a livespace.

Author:
Steven Johnson Created on 10/01/2005

Field Summary
 String audioSourceId
          Id of the audio source.
static String ENTITY_TYPE
           
 String ipAddress
          The raw IP address of the machine on which this ComputerEntity is running.
static String SCREENSAVER_ON
          The name of the screensaver attribute that specifies whether a computer is currently running its screensaver or not.
 String type
          The type of the computer (eg.
 String user
          Name of the current user of the computer.
 EntityRegistry videoOutputs
          The video sources hosted by this computer.
 
Fields inherited from class livespace.services.Entity
container, id, lastTouched, name, unconfirmedUpdates
 
Fields inherited from class dsto.dfc.databeans.AbstractDataObject
listeners
 
Fields inherited from interface dsto.dfc.databeans.IDataObject
OVERRIDE, PERSISTENT, PERSISTENT_OVERRIDE, TRANSIENT, TRANSIENT_OVERRIDE
 
Constructor Summary
ComputerEntity()
           
ComputerEntity(String id)
           
ComputerEntity(String id, String name)
           
 
Method Summary
 void add(VideoSourceEntity videoOutput)
          Add the video output to this computer.
 String getType()
          The type of the object (eg "room", "light", "volume", etc).
 Iterable<Entity> getVideoOutputs()
           
 boolean hasVideoSwitchPort()
          Determines if a computer has a video source that has a video switch port, ie the computer's video output is able to be forwarded.
 void remove(VideoSourceEntity videoOutput)
           
 
Methods inherited from class livespace.services.Entity
create, createId, getElvin, getType, getTypeInfo, mutex, sameEntity, shallowClone, waitForProperty, waitForProperty, waitForProperty, waitForProperty
 
Methods inherited from class dsto.dfc.databeans.FancyDataObject
childPropertyChanged, getValue, isTransient, propertyIterator, setValue
 
Methods inherited from class dsto.dfc.databeans.SimpleDataObject
getFieldNames, setValue
 
Methods inherited from class dsto.dfc.databeans.AbstractDataObject
addFirstPropertyListener, addPropertyListener, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, firePropertyChangedEvent, getBeanValue, getBooleanValue, getBooleanValue, getCharValue, getCharValue, getDoubleValue, getDoubleValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getObjectValue, getPropertyListeners, getShortValue, getStringValue, registerValue, removePropertyListener, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, unregisterValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENTITY_TYPE

public static final String ENTITY_TYPE
See Also:
Constant Field Values

SCREENSAVER_ON

public static final String SCREENSAVER_ON
The name of the screensaver attribute that specifies whether a computer is currently running its screensaver or not. This will only be used for computers that support the ability to control their screensaver.

See Also:
Constant Field Values

user

public String user
Name of the current user of the computer.


audioSourceId

public String audioSourceId
Id of the audio source. By default this is set to the video source id of the primary desktop.

See Also:
SpeakerEntity.audioSourceId

videoOutputs

public EntityRegistry videoOutputs
The video sources hosted by this computer. Each computer will generally have one or more video sources, one per VGA/DVI display output.


type

public String type
The type of the computer (eg. "server", "laptop", or "pda").


ipAddress

public String ipAddress
The raw IP address of the machine on which this ComputerEntity is running.

Constructor Detail

ComputerEntity

public ComputerEntity()

ComputerEntity

public ComputerEntity(String id)

ComputerEntity

public ComputerEntity(String id,
                      String name)
Method Detail

getType

public String getType()
Description copied from class: Entity
The type of the object (eg "room", "light", "volume", etc). This must be unique to the entity class.

NOTE: it is also a good practice to provide a static field that defines the entity type on the class: eg

 public static final String ENTITY_TYPE = "room";
 

Specified by:
getType in class Entity

add

public void add(VideoSourceEntity videoOutput)
Add the video output to this computer. If the video output is the primary for this computer, then also set the audio source id.

Parameters:
videoOutput -

remove

public void remove(VideoSourceEntity videoOutput)

hasVideoSwitchPort

public boolean hasVideoSwitchPort()
Determines if a computer has a video source that has a video switch port, ie the computer's video output is able to be forwarded.


getVideoOutputs

public Iterable<Entity> getVideoOutputs()


Copyright © 2008 Commonwealth of Australia