Constructor and Description |
---|
SimpleLink(int id) |
SimpleLink(SimpleLink link)
Copy Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getID()
Returns the Integer ID of this Link.
|
java.lang.String |
getProperty(java.lang.String key)
Returns the value of the property with the name given by the given key,
or null if no property with this name exists.
|
double |
getValue()
Returns a double value associated with the link.
|
int |
hashCode() |
void |
setProperty(java.lang.String key,
java.lang.String value)
Adds or sets a property to this link.
|
void |
setValue(double value)
Sets the value for this links "distance" value.
|
java.lang.String |
toString() |
public SimpleLink(int id)
public SimpleLink(SimpleLink link)
link
- a link to be copiedpublic int getID()
Link
public void setProperty(java.lang.String key, java.lang.String value)
Link
setProperty
in interface Link
key
- a String representation of the name of the propertyvalue
- a String representation of the property valuepublic java.lang.String getProperty(java.lang.String key)
Link
getProperty
in interface Link
key
- a property namepublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public double getValue()
Link
public void setValue(double value)
Link
Link.getValue()
.