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

Field Summary
private  springs.context.ContextAddress _contextAddress
           
private  int _numFailedPings
           
private  int _observedAndTrackedAgents
           
 
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.
 
Method Summary
 springs.context.ContextAddress getContextAddress()
           
 int getNumFailedPings()
           
 int getObservedAndTrackedAgents()
           
 void setNumFailedPings(int numFailedPings)
           
 void setObservedAndTrackedAgents(int observedAndTrackedAgents)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_contextAddress

private springs.context.ContextAddress _contextAddress

_observedAndTrackedAgents

private int _observedAndTrackedAgents

_numFailedPings

private int _numFailedPings
Constructor Detail

ContextInformation

public ContextInformation(springs.context.ContextAddress contextAddress,
                          int observedAndTrackedAgents,
                          int numFailedPings)
Constructor.

Parameters:
contextAddress - the information of a context
observedAndTrackedAgents - 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 context
observedAndTrackedAgents - 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
Method Detail

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