|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.UCL.satin.arch.components.Component
edu.UCL.satin.impl.remotecomponents.RemoteComponent
This class represents a component (along with it's known attributes) that exists remotelly.
Field Summary | |
private DebugFacet |
debug
|
private Location |
location
|
private java.lang.Object |
message
Returns contact details for the component. |
Fields inherited from class edu.UCL.satin.arch.components.Component |
immutable, properties |
Fields inherited from interface edu.UCL.satin.arch.facets.ComponentFacet |
DISABLED, ENABLED |
Constructor Summary | |
RemoteComponent(java.lang.Object id,
java.util.Hashtable properties,
java.lang.Object message,
Location location)
Creates a new remote component (which is obviously immutable to the local host) |
|
RemoteComponent(java.lang.String msg,
java.lang.String advMsg,
Location location)
Creates a new remote component based on its textual representation of its attributes |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
Location |
getLocation()
|
java.lang.Object |
getMessage()
|
boolean |
isEnabled()
Returns whether this component is enabled/active or not. |
static java.util.Hashtable |
parseRemoteProperties(java.lang.String msg)
parses the properties of a component (as text) into a hashtable |
void |
setEnabled(boolean enabled)
Activates or deactivates this component (if applicable). |
Methods inherited from class edu.UCL.satin.arch.components.Component |
addAttribute, construct, destroy, getAttribute, getProperties, hasAttribute, match, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.Object message
private DebugFacet debug
private Location location
Constructor Detail |
public RemoteComponent(java.lang.Object id, java.util.Hashtable properties, java.lang.Object message, Location location)
id
- the component's identifierproperties
- the component's attributesmessage
- the advertising message for the componentpublic RemoteComponent(java.lang.String msg, java.lang.String advMsg, Location location)
msg
- the tetual representation of the components propertiesadvMsg
- the advertising message for the componentMethod Detail |
public java.lang.Object getMessage()
public boolean isEnabled()
Component
isEnabled
in interface ComponentFacet
isEnabled
in class Component
public void setEnabled(boolean enabled)
Component
setEnabled
in interface ComponentFacet
setEnabled
in class Component
enabled
- public static java.util.Hashtable parseRemoteProperties(java.lang.String msg)
public boolean equals(java.lang.Object o)
public Location getLocation()
getLocation
in interface HasLocation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |