|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.databeans.AbstractDataObject
dsto.dfc.databeans.SimpleDataObject
dsto.dfc.databeans.FancyDataObject
livespace.services.Entity
livespace.services.entities.ComputerEntity
public class ComputerEntity
Represents a computer within a livespace.
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ENTITY_TYPE
public static final String SCREENSAVER_ON
public String user
public String audioSourceId
SpeakerEntity.audioSourceIdpublic EntityRegistry videoOutputs
public String type
public String ipAddress
| Constructor Detail |
|---|
public ComputerEntity()
public ComputerEntity(String id)
public ComputerEntity(String id,
String name)
| Method Detail |
|---|
public String getType()
EntityNOTE: 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";
getType in class Entitypublic void add(VideoSourceEntity videoOutput)
videoOutput - public void remove(VideoSourceEntity videoOutput)
public boolean hasVideoSwitchPort()
public Iterable<Entity> getVideoOutputs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||