|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Link
Interface for describing a link (arc, edge) in a graph.
Field Summary | |
---|---|
static int |
ALL
|
static int |
DESTINATION
|
static int |
SOURCE
|
static int |
STRENGTH
|
static int |
TYPE
|
Method Summary | |
---|---|
void |
add(Property prop)
Add the given property to this link |
Actor |
getDestination()
Returns the actor where the link (edge, arc) terminates. |
Property[] |
getProperty()
Return all properties associated with this link. |
Property |
getProperty(java.lang.String id)
Get the property with the given name. |
Actor |
getSource()
Returns the actor from which the link (edge, arc) begins. |
double |
getStrength()
return the strength of this link. |
java.lang.String |
getType()
Returns the type (relation) of the link. |
void |
set(Actor l,
double strength,
Actor r)
sets all aspects of the link at once |
void |
set(double str)
Sets the strength that this link has. |
void |
setDestination(Actor u)
Sets the destination of this link. |
void |
setSource(Actor u)
Sets the source of this link. |
void |
setType(java.lang.String type)
Sets the type (relation) of the link. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model |
---|
addListener |
Field Detail |
---|
static final int ALL
static final int SOURCE
static final int DESTINATION
static final int STRENGTH
static final int TYPE
Method Detail |
---|
double getStrength()
Actor getSource()
Actor getDestination()
java.lang.String getType()
void set(Actor l, double strength, Actor r)
l
- source actorstrength
- strength of this lengthr
- destination actorvoid setSource(Actor u)
u
- actor sourcevoid setDestination(Actor u)
u
- destination actor.void setType(java.lang.String type)
type
- string describing the typevoid set(double str)
str
- sterngth of this link.void add(Property prop)
prop
- Property getProperty(java.lang.String id)
id
- id of the property to be returned
Property[] getProperty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |