de.cesr.more.basic.edge
Interface MoreEdge<AgentType>

All Known Subinterfaces:
MoreGeoEdge<AgentType>, MoreTraceableEdge<AgentType>
All Known Implementing Classes:
MEdge, MGeoEdge, MRepastEdge

public interface MoreEdge<AgentType>

MORe edge interface

Date:
03.12.2010

Method Summary
 AgentType getEnd()
          For undirected edges, it returns the node that was given as second node parameter.
 AgentType getStart()
          For undirected edges, it returns the node that was given as first node parameter.
 double getWeight()
           
 boolean isDirected()
           
 void setWeight(double weight)
           
 

Method Detail

getStart

AgentType getStart()
For undirected edges, it returns the node that was given as first node parameter.

Returns:
the edge's start node

getEnd

AgentType getEnd()
For undirected edges, it returns the node that was given as second node parameter.

Returns:
the edge's target node

getWeight

double getWeight()
Returns:
the weight that is associated with this edge

setWeight

void setWeight(double weight)
Parameters:
weight - that is associated with this edge

isDirected

boolean isDirected()
Returns:
true if this edge is directed