net.sourceforge.jasa.view
Class TradeNetworkView

java.lang.Object
  extended by net.sourceforge.jasa.view.TradeNetworkView
All Implemented Interfaces:
java.io.Serializable

public class TradeNetworkView
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form
 

Nested Class Summary
static class TradeNetworkView.AgentPickingGraphMousePlugin<V,E>
           
 
Field Summary
protected  javax.swing.JCheckBox dyadsCheckBox
           
protected  boolean dyadsOnly
           
 java.lang.String fileName
           
static java.text.DecimalFormat fitnessFormatter
           
protected  int interactions
           
protected   layout
           
protected   myGraph
           
static java.text.DecimalFormat scoreFormatter
           
protected  TradeNetworkReport tradeNetwork
           
protected  int updateFrequency
           
protected  int updates
           
protected   viewer
           
 
Constructor Summary
TradeNetworkView(TradeNetworkReport tradeNetwork)
           
 
Method Summary
 void clearEdges()
           
 void clearGraph()
           
 void clearVertices()
           
 void eventOccurred(SimEvent event)
           
 javax.swing.JComponent getComponent()
           
 java.lang.String getName()
           
 int getUpdateFrequency()
           
 java.util.Map<java.lang.Object,java.lang.Number> getVariableBindings()
           
 void intialiseGUI()
           
 void onInteractionsFinished()
           
 void onSimulationFinished()
           
 void setUpdateFrequency(int updateFrequency)
           
 void updateGraph()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tradeNetwork

protected TradeNetworkReport tradeNetwork

viewer

protected  viewer

layout

protected  layout

updates

protected int updates

dyadsCheckBox

protected javax.swing.JCheckBox dyadsCheckBox

dyadsOnly

protected boolean dyadsOnly

interactions

protected int interactions

updateFrequency

protected int updateFrequency

myGraph

protected  myGraph

fileName

public java.lang.String fileName

fitnessFormatter

public static final java.text.DecimalFormat fitnessFormatter

scoreFormatter

public static final java.text.DecimalFormat scoreFormatter
Constructor Detail

TradeNetworkView

public TradeNetworkView(TradeNetworkReport tradeNetwork)
Method Detail

intialiseGUI

public void intialiseGUI()

eventOccurred

public void eventOccurred(SimEvent event)

onInteractionsFinished

public void onInteractionsFinished()

onSimulationFinished

public void onSimulationFinished()

updateGraph

public void updateGraph()

getVariableBindings

public java.util.Map<java.lang.Object,java.lang.Number> getVariableBindings()

clearGraph

public void clearGraph()

clearVertices

public void clearVertices()

clearEdges

public void clearEdges()

getUpdateFrequency

public int getUpdateFrequency()

setUpdateFrequency

public void setUpdateFrequency(int updateFrequency)

getName

public java.lang.String getName()

getComponent

public javax.swing.JComponent getComponent()