public abstract class AbstractFacet extends Object implements Facet
Facet
that maintains a device info context.
Remember, a Facet is the projection of a particular "view" onto a DeviceInfo
instance.Constructor and Description |
---|
AbstractFacet(DeviceInfo context)
Constructs a facet that is projected onto the specified device info context.
|
Modifier and Type | Method and Description |
---|---|
DeviceInfo |
getContext()
Returns the device info context of which this facet is a "view".
|
IpAddress |
getIpAddress()
Get the IP address associated with this facet, if any.
|
String |
getTypeName()
Returns the name of the underlying device type.
|
void |
setIpAddress(IpAddress ip)
Set the IP address associated with this facet, if needed.
|
public AbstractFacet(DeviceInfo context)
context
- the device info of which this is a facetpublic DeviceInfo getContext()
Facet
getContext
in interface Facet
public String getTypeName()
Facet
getTypeName
in interface Facet
public IpAddress getIpAddress()
public void setIpAddress(IpAddress ip)
ip
- the IP addressCopyright © 2015. All Rights Reserved.