net.sourceforge.jasa.report
Class TradeNetworkReport
java.lang.Object
AbstractModel
net.sourceforge.jasa.report.TradeNetworkReport
- All Implemented Interfaces:
- java.io.Serializable
public class TradeNetworkReport
- extends AbstractModel
- implements java.io.Serializable
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
graph
protected graph
distanceMetric
protected distanceMetric
maximumWeight
protected double maximumWeight
interactions
public int interactions
alpha
protected double alpha
threshold
protected double threshold
population
protected Population population
COMMUNITY_N
public static final int COMMUNITY_N
- See Also:
- Constant Field Values
TradeNetworkReport
public TradeNetworkReport()
eventOccurred
public void eventOccurred(SimEvent ev)
onInteractionsFinished
public void onInteractionsFinished(InteractionsFinishedEvent ev)
onSimulationStarting
public void onSimulationStarting(SimulationStartingEvent event)
clearEdges
public void clearEdges()
clearVertices
public void clearVertices()
resetGraph
public void resetGraph(SimulationEvent event)
clearGraph
public void clearGraph()
onTransactionExecuted
public void onTransactionExecuted(TransactionExecutedEvent event)
record
public void record(Agent x,
Agent y,
TransactionExecutedEvent transaction)
getMaximumInvestment
public double getMaximumInvestment()
getVariableBindings
public java.util.Map<java.lang.Object,java.lang.Number> getVariableBindings()
getGraph
public getGraph()
getAlpha
public double getAlpha()
setAlpha
public void setAlpha(double discountFactor)
getThreshold
public double getThreshold()
setThreshold
public void setThreshold(double threshold)
getNeighbours
public java.util.Collection<Agent> getNeighbours(Agent agent)
edgeStrength
public double edgeStrength(Agent i,
Agent j)
vertexStrength
public double vertexStrength(Agent i)
degree
public int degree(Agent i)
outDegree
public int outDegree(Agent i)
inDegree
public int inDegree(Agent vertex)
getDistance
public double getDistance(Agent i,
Agent j)
getPopulation
public Population getPopulation()
setPopulation
public void setPopulation(Population population)
getName
public java.lang.String getName()