public class Arc
extends java.lang.Object
Constructor and Description |
---|
Arc()
Default Constructor
|
Arc(int iLabel,
int oLabel,
float weight,
State nextState)
Arc Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getIlabel()
Get the input label's id
|
State |
getNextState()
Get the next state
|
int |
getOlabel()
Get the output label's id
|
float |
getWeight()
Get the arc's weight
|
int |
hashCode() |
void |
setIlabel(int iLabel)
Set the input label's id
|
void |
setNextState(State nextState)
Set the next state
|
void |
setOlabel(int oLabel)
Set the output label's id
|
void |
setWeight(float weight)
Set the arc's weight
|
java.lang.String |
toString() |
public Arc()
public Arc(int iLabel, int oLabel, float weight, State nextState)
iLabel
- the input label's idoLabel
- the output label's idweight
- the arc's weightnextState
- the arc's next statepublic float getWeight()
public void setWeight(float weight)
weight
- arc weightpublic int getIlabel()
public void setIlabel(int iLabel)
iLabel
- the input label's id to setpublic int getOlabel()
public void setOlabel(int oLabel)
oLabel
- the output label's id to setpublic State getNextState()
public void setNextState(State nextState)
nextState
- the next state to setpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object