|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisidia.rule.Neighbor
public class Neighbor
A Neighbor contains all the information concerning a node.
Field Summary | |
---|---|
protected int |
door
|
protected boolean |
mark
|
protected java.lang.String |
state
|
Constructor Summary | |
---|---|
Neighbor()
the default constructor default values are : "UNKNOWN", false , -1 |
|
Neighbor(boolean edgMark,
int door)
|
|
Neighbor(int door)
|
|
Neighbor(java.lang.String state)
|
|
Neighbor(java.lang.String state,
boolean edgMark)
|
|
Neighbor(java.lang.String state,
boolean edgMark,
int door)
constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
int |
doorNum()
return the door number. |
boolean |
equals(Neighbor n)
two neighbors are equal if they have same labels, marks, and doors. |
boolean |
mark()
return the edge mark. |
boolean |
sameState(Neighbor n)
compare only the labels. |
void |
setDoorNum(int n)
set the value of door. |
void |
setState(Neighbor n)
sets properties with value of those of the Neighbor given on parameters. only the door number is not set. |
java.lang.String |
state()
return the state ( a ) |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String state
protected boolean mark
protected int door
Constructor Detail |
---|
public Neighbor()
public Neighbor(java.lang.String state, boolean edgMark, int door)
state
- the new LabeledgMark
- the mark of the edgedoor
- the number of the doorpublic Neighbor(java.lang.String state, boolean edgMark)
public Neighbor(boolean edgMark, int door)
public Neighbor(java.lang.String state)
state
- the label of the nodepublic Neighbor(int door)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int doorNum()
public void setDoorNum(int n)
n
- the new door number.public void setState(Neighbor n)
n
- Neighbor.public boolean mark()
public java.lang.String state()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(Neighbor n)
n
-
public boolean sameState(Neighbor n)
n
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |