org.echarts.servlet.sip.appRouter.DFCRouterImpl
Class PrecedencePair

java.lang.Object
  extended by org.echarts.servlet.sip.appRouter.DFCRouterImpl.PrecedencePair

public class PrecedencePair
extends java.lang.Object

This class encapsulates a pair of applications with a precedence relationship between them.

Author:
khp

Field Summary
 Application greater
           
 Application lesser
           
 
Constructor Summary
PrecedencePair(Application lesser, Application greater)
          Construct a new precedence pair with the two applications.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare another Object to this precedence pair for equality.
 java.lang.String toString()
          Render a PrecedencePair object as a string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lesser

public final Application lesser

greater

public final Application greater
Constructor Detail

PrecedencePair

public PrecedencePair(Application lesser,
                      Application greater)
Construct a new precedence pair with the two applications. The application designated by 'greater' is the application with higher precedence. Higher precedence means that it shall be invoked closer to the subscriber for whom it was invoked.

Parameters:
lesser - the application with lesser precedence
greater - the application with greater precedence
Method Detail

equals

public boolean equals(java.lang.Object o)
Compare another Object to this precedence pair for equality.

Overrides:
equals in class java.lang.Object
Returns:
true if the other object has the same applications named as 'lesser' and 'greater'. Return false otherwise.

toString

public java.lang.String toString()
Render a PrecedencePair object as a string.

Overrides:
toString in class java.lang.Object