Package jadex.bdi.planlib.watchdog
Class ObservationDescription
- java.lang.Object
- 
- jadex.bdi.planlib.watchdog.ObservationDescription
 
- 
 public class ObservationDescription extends java.lang.ObjectThe observation description
- 
- 
Field SummaryFields Modifier and Type Field Description protected IComponentIdentifiercidThe identifier of the component to observe.protected ContactData[]contactsThe contact data.protected longpingdelayThe delay between pings.
 - 
Constructor SummaryConstructors Constructor Description ObservationDescription()Create a new description.ObservationDescription(IComponentIdentifier cid, long pingdelay, ContactData[] contact)Create a new description.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IComponentIdentifiergetComponentIdentifier()Get the component id.ContactData[]getContacts()Get the contact data.longgetPingDelay()Get the ping delay.voidsetComponentIdentifier(IComponentIdentifier cid)Set the component id.voidsetContacts(ContactData[] contacts)Set the contact data.voidsetPingDelay(long pingdelay)Set the ping delay.java.lang.StringtoString()Returns a string representation of the object.
 
- 
- 
- 
Field Detail- 
cidprotected IComponentIdentifier cid The identifier of the component to observe.
 - 
pingdelayprotected long pingdelay The delay between pings.
 - 
contactsprotected ContactData[] contacts The contact data.
 
- 
 - 
Constructor Detail- 
ObservationDescriptionpublic ObservationDescription() Create a new description.
 - 
ObservationDescriptionpublic ObservationDescription(IComponentIdentifier cid, long pingdelay, ContactData[] contact) Create a new description.
 
- 
 - 
Method Detail- 
getComponentIdentifierpublic IComponentIdentifier getComponentIdentifier() Get the component id.- Returns:
- The component id;
 
 - 
setComponentIdentifierpublic void setComponentIdentifier(IComponentIdentifier cid) Set the component id.- Parameters:
- cid- The component id;
 
 - 
getPingDelaypublic long getPingDelay() Get the ping delay.- Returns:
- The ping delay.
 
 - 
setPingDelaypublic void setPingDelay(long pingdelay) Set the ping delay.- Parameters:
- pingdelay- The ping delay.
 
 - 
getContactspublic ContactData[] getContacts() Get the contact data.- Returns:
- The contact data.
 
 - 
setContactspublic void setContacts(ContactData[] contacts) Set the contact data.- Parameters:
- contacts- The contact data.
 
 - 
toStringpublic java.lang.String toString() Returns a string representation of the object. In general, thetoStringmethod returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.toString method for class Objectreturns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:- Overrides:
- toStringin class- java.lang.Object
- Returns:
- a string representation of the object.
 
 
- 
 
-