net.sourceforge.jasa.report
Class TradeNetworkReport

java.lang.Object
  extended by AbstractModel
      extended by net.sourceforge.jasa.report.TradeNetworkReport
All Implemented Interfaces:
java.io.Serializable

public class TradeNetworkReport
extends AbstractModel
implements java.io.Serializable

 

Nested Class Summary
 class TradeNetworkReport.TransactionList
           
 
Field Summary
protected  double alpha
           
static int COMMUNITY_N
           
protected   distanceMetric
           
protected   graph
           
 int interactions
           
protected  double maximumWeight
           
protected  Population population
           
protected  double threshold
           
 
Constructor Summary
TradeNetworkReport()
           
 
Method Summary
 void clearEdges()
           
 void clearGraph()
           
 void clearVertices()
           
 int degree(Agent i)
           
 double edgeStrength(Agent i, Agent j)
           
 void eventOccurred(SimEvent ev)
           
 double getAlpha()
           
 double getDistance(Agent i, Agent j)
           
  getGraph()
           
 double getMaximumInvestment()
           
 java.lang.String getName()
           
 java.util.Collection<Agent> getNeighbours(Agent agent)
           
 Population getPopulation()
           
 double getThreshold()
           
 java.util.Map<java.lang.Object,java.lang.Number> getVariableBindings()
           
 int inDegree(Agent vertex)
           
 void onInteractionsFinished(InteractionsFinishedEvent ev)
           
 void onSimulationStarting(SimulationStartingEvent event)
           
 void onTransactionExecuted(TransactionExecutedEvent event)
           
 int outDegree(Agent i)
           
 void record(Agent x, Agent y, TransactionExecutedEvent transaction)
           
 void resetGraph(SimulationEvent event)
           
 void setAlpha(double discountFactor)
           
 void setPopulation(Population population)
           
 void setThreshold(double threshold)
           
 double vertexStrength(Agent i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TradeNetworkReport

public TradeNetworkReport()
Method Detail

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()