springs.rns
Class ContextInformation
java.lang.Object
|
+--springs.rns.ContextInformation
- All Implemented Interfaces:
- java.io.Serializable
- public class ContextInformation
- extends java.lang.Object
- implements java.io.Serializable
Information needed to get the address of an agent.
- Author:
- Raquel Trillo Lado
- See Also:
- Serialized Form
Constructor Summary |
ContextInformation(springs.context.ContextAddress contextAddress)
Constructor. |
ContextInformation(springs.context.ContextAddress contextAddress,
int observedAndTrackedAgents)
Constructor. |
ContextInformation(springs.context.ContextAddress contextAddress,
int observedAndTrackedAgents,
int numFailedPings)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_contextAddress
private springs.context.ContextAddress _contextAddress
_observedAndTrackedAgents
private int _observedAndTrackedAgents
_numFailedPings
private int _numFailedPings
ContextInformation
public ContextInformation(springs.context.ContextAddress contextAddress,
int observedAndTrackedAgents,
int numFailedPings)
- Constructor.
- Parameters:
contextAddress
- the information of a contextobservedAndTrackedAgents
- the number of agents which observes and trackes the context
ContextInformation
public ContextInformation(springs.context.ContextAddress contextAddress,
int observedAndTrackedAgents)
- Constructor.
- Parameters:
contextAddress
- the information of a contextobservedAndTrackedAgents
- the number of agents which observes and trackes the context
ContextInformation
public ContextInformation(springs.context.ContextAddress contextAddress)
- Constructor.
- Parameters:
contextAddress
- the information of a context and
observedAndTrackedAgents will be 0
getContextAddress
public springs.context.ContextAddress getContextAddress()
getObservedAndTrackedAgents
public int getObservedAndTrackedAgents()
setObservedAndTrackedAgents
public void setObservedAndTrackedAgents(int observedAndTrackedAgents)
getNumFailedPings
public int getNumFailedPings()
setNumFailedPings
public void setNumFailedPings(int numFailedPings)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object