|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.tfe.core.Sensor
| Field Summary | |
static SensorList |
sensorList
|
| Constructor Summary | |
Sensor(java.lang.String name)
Creates new Sensor with null initialized values and ignore set to "true". |
|
Sensor(java.lang.String name,
java.lang.String locString,
java.lang.String description,
java.lang.String type,
java.lang.String version,
boolean ign,
java.awt.Color color)
Creates new Sensor |
|
| Method Summary | |
void |
addObserver(SensorObserver observer)
|
void |
alertAdded(Alert alert)
|
void |
alertRemoved(int alertID)
|
void |
alertUpdated(int alertID,
Alert newVal)
|
void |
allRemoved()
|
void |
deleteObserver(SensorObserver observer)
|
protected void |
finalize()
|
Alert |
getAlert(int index)
Gets an Alert at a specified index in the Sensor's Alert list. |
int |
getAlertCount()
Gets the total number of Alerts that this Sensor has reported. |
java.awt.Color |
getColor()
Gets the color of this Sensor. |
java.lang.String |
getDescription()
Gets the Sensor's description. |
java.lang.String |
getHostName()
Gets the Sensor's hostname. |
Alert |
getLastAlert()
Gets the last alert that was added to the Sensor's Alert list. |
java.lang.String |
getLocation()
Gets the Sensor's location. |
java.lang.String |
getNotes()
Gets the notes associated with this Sensor. |
java.lang.String |
getPOCAddress()
Gets the address of the POC for this Sensor. |
java.lang.String |
getPOCName()
Gets the name of the POC for this Sensor. |
java.lang.String |
getPOCPhone()
Gets the phone number of the POC for this Sensor. |
java.lang.String |
getType()
Gets the Sensor's type. |
java.lang.String |
getVersion()
Gets the Sensor's version. |
boolean |
hasAlert(Alert alert)
Checks to see if the specified Alert belongs to this Sensor. |
boolean |
isIgnored()
Gets whether or not the Sensor is ignored. |
void |
setColor(java.awt.Color color)
Sets the color of this Sensor. |
void |
setDescription(java.lang.String desc)
Sets the Sensor's description. |
void |
setHostName(java.lang.String name)
Sets the Sensor's hostname. |
void |
setIgnored(boolean ign)
Set whether or not to ignore Alerts from this Sensor. |
void |
setLocation(java.lang.String loc)
Sets the Sensor's location. |
void |
setNotes(java.lang.String notes)
Sets the notes associated with this Sensor. |
void |
setPOCAddress(java.lang.String pocaddress)
Sets the address of the POC for this Sensor. |
void |
setPOCName(java.lang.String pocname)
Sets the name of the POC for this Sensor. |
void |
setPOCPhone(java.lang.String pocphone)
Sets the phone number of the POC for this Sensor. |
void |
setType(java.lang.String type)
Sets the Sensor's type. |
void |
setVersion(java.lang.String version)
Sets the Sensor's version. |
java.lang.String |
toString()
Gets a String representation of this Sensor. |
java.lang.String[] |
toSummary()
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final SensorList sensorList
| Constructor Detail |
public Sensor(java.lang.String name,
java.lang.String locString,
java.lang.String description,
java.lang.String type,
java.lang.String version,
boolean ign,
java.awt.Color color)
name - the name of the Sensor.locString - the location of the Sensor.description - a description of the Sensor.type - the Sensor's type.version - the version or revision number of the Sensor.ign - whether or not to ignore Alerts received from this Sensor.color - the color to be used when graphically representing this Sensor.public Sensor(java.lang.String name)
name - the name of the Sensor.| Method Detail |
public java.lang.String getHostName()
public void setHostName(java.lang.String name)
name - the String value of the Sensor's hostname.public java.lang.String getLocation()
public void setLocation(java.lang.String loc)
loc - the String value of the Sensor's location.public java.lang.String getDescription()
public void setDescription(java.lang.String desc)
desc - the String value of the Sensor's description.public java.lang.String getType()
public void setType(java.lang.String type)
type - the String value of the Sensor's type.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - the String value of the Sensor's version.public boolean isIgnored()
public void setIgnored(boolean ign)
ign - whether or not to ignore Alerts from this Sensor.public Alert getLastAlert()
Alert that the Sensor received, null if it has not received any.public Alert getAlert(int index)
Alert at a specified index in the Sensor's Alert list.
index - the index of the Alert to be retrieved.
Alert at the specified index.public boolean hasAlert(Alert alert)
Alert belongs to this Sensor.
alert - the Alert that we're looking for.
public int getAlertCount()
Alerts that this Sensor has reported.
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - the color of this Sensor.public java.lang.String getPOCName()
public void setPOCName(java.lang.String pocname)
pocname - the name of the POC for this Sensor.public java.lang.String getPOCAddress()
public void setPOCAddress(java.lang.String pocaddress)
pocaddress - the address of the POC for this Sensor.public java.lang.String getPOCPhone()
public void setPOCPhone(java.lang.String pocphone)
pocphone - the phone number of the POC for this Sensor.public java.lang.String getNotes()
public void setNotes(java.lang.String notes)
notes - the notes associated with this Sensor.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String[] toSummary()
public void alertAdded(Alert alert)
alertAdded in interface AlertListObserverpublic void alertRemoved(int alertID)
alertRemoved in interface AlertListObserver
public void alertUpdated(int alertID,
Alert newVal)
alertUpdated in interface AlertListObserverpublic void allRemoved()
allRemoved in interface AlertListObserverpublic void addObserver(SensorObserver observer)
public void deleteObserver(SensorObserver observer)
protected void finalize()
finalize in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||