uaa.feral.social.network
Class RelationshipEdge<T>
java.lang.Object
repast.simphony.space.graph.RepastEdge<T>
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
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 |
RelationshipEdge
public RelationshipEdge(T source,
T target,
AgentType type)
- Method to create a relationship edge
- Parameters:
source
- the person the relationship is relative totarget
- the person who is related in the give waytype
- the relationship type
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)