uaa.feral.social.network
Class RelationshipEdge<T>

java.lang.Object
  extended by repast.simphony.space.graph.RepastEdge<T>
      extended by uaa.feral.social.network.RelationshipEdge<T>
Type Parameters:
T -

public class RelationshipEdge<T>
extends repast.simphony.space.graph.RepastEdge<T>

This network edge stores the relationship between the connected agents

Author:
Mark Altaweel

Constructor Summary
RelationshipEdge(T source, T target, AgentType type)
          Method to create a relationship edge
 
Method Summary
 double getApproval()
           
 int getSourceId()
           
 int getTargetId()
           
 AgentType getType()
           
 void setApproval(double approval)
           
 void setSourceId(int sourceId)
           
 void setSourceTargetIds(int source, int target)
           
 void setTargetId(int targetId)
           
 void setType(AgentType type)
           
 
Methods inherited from class repast.simphony.space.graph.RepastEdge
getSource, getTarget, getWeight, isDirected, setWeight
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipEdge

public RelationshipEdge(T source,
                        T target,
                        AgentType type)
Method to create a relationship edge

Parameters:
source - the person the relationship is relative to
target - the person who is related in the give way
type - the relationship type
Method Detail

getType

public AgentType getType()

getApproval

public double getApproval()

setApproval

public void setApproval(double approval)

setType

public void setType(AgentType type)

getSourceId

public int getSourceId()

setSourceId

public void setSourceId(int sourceId)

getTargetId

public int getTargetId()

setTargetId

public void setTargetId(int targetId)

setSourceTargetIds

public void setSourceTargetIds(int source,
                               int target)