|
|||||||||
| 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 |
RELATION
|
static int |
SOURCE
|
static int |
STRENGTH
|
| Method Summary | |
|---|---|
void |
add(Property prop)
Add the given property to this link |
Actor |
getDestination()
Returns the actor where the link (edge, arc) terminates. |
java.util.List<Property> |
getProperty()
Return all properties associated with this link. |
Property |
getProperty(java.lang.String id)
Get the property with the given name. |
java.lang.String |
getRelation()
Returns the type (relation) of the link. |
Actor |
getSource()
Returns the actor from which the link (edge, arc) begins. |
double |
getStrength()
return the strength of this link. |
void |
init(Properties properties)
|
Link |
prototype()
|
void |
removeProperty(java.lang.String id)
|
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 |
setRelation(java.lang.String type)
Sets the type (relation) of the link. |
void |
setSource(Actor u)
Sets the source of this 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 RELATION
static final int STRENGTH
| Method Detail |
|---|
double getStrength()
Actor getSource()
Actor getDestination()
java.lang.String getRelation()
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 setRelation(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
java.util.List<Property> getProperty()
void removeProperty(java.lang.String id)
Link prototype()
void init(Properties properties)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||