|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeersim.skipnet.SkipnetName
public class SkipnetName
Defines a name address for the peersim.extras.am.skipnet protocol.
Field Summary | |
---|---|
static char |
DELIMITER
|
Constructor Summary | |
---|---|
SkipnetName()
|
|
SkipnetName(java.lang.String id)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
int |
compareTo(SkipnetName comp)
|
boolean |
equals(SkipnetName comp)
|
java.lang.String |
getIdentifier()
|
int |
hashCode()
|
static boolean |
isAtRight(SkipnetName A,
SkipnetName B)
Determine if B is located at the right side of A |
boolean |
isWithinPrefix(SkipnetName prefix)
Determines if this name ID has the given prefix |
boolean |
isWithinPrefix(java.lang.String prefix)
Determines if this name ID has the given prefix |
static boolean |
liesBetween(SkipnetName A,
SkipnetName B,
SkipnetName C)
Determine if B is located between A and C, allowing for the possibility that A==C |
static boolean |
liesBetween(SkipnetName A,
SkipnetName B,
SkipnetName C,
SkipnetUtil.Direction dir)
Determine if B is located between A and C, when going in direction given by 'dir' |
static boolean |
liesBetweenIncl(SkipnetName A,
SkipnetName B,
SkipnetName C)
Determine if B is located between A and C, allowing for the possibility that A==B |
int |
longestCommonPrefixLength(SkipnetName n)
Compute the length of the longest common prefix of two name IDs, ignoring delimiters |
void |
setIdentifier(java.lang.String identifier)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char DELIMITER
Constructor Detail |
---|
public SkipnetName()
public SkipnetName(java.lang.String id)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(SkipnetName comp)
public boolean equals(SkipnetName comp)
public static boolean liesBetweenIncl(SkipnetName A, SkipnetName B, SkipnetName C)
public static boolean isAtRight(SkipnetName A, SkipnetName B)
public static boolean liesBetween(SkipnetName A, SkipnetName B, SkipnetName C)
public boolean isWithinPrefix(java.lang.String prefix)
public boolean isWithinPrefix(SkipnetName prefix)
public int longestCommonPrefixLength(SkipnetName n)
public static boolean liesBetween(SkipnetName A, SkipnetName B, SkipnetName C, SkipnetUtil.Direction dir)
public java.lang.String getIdentifier()
public void setIdentifier(java.lang.String identifier)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |