public class UserAgent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent |
protected org.jfree.chart.JFreeChart |
chart
The chart.
|
protected javax.swing.JFrame |
frame
The frame.
|
protected jadex.bridge.nonfunctional.search.ComposedEvaluator<ICryptoService> |
ranker
The evaluator.
|
protected java.util.Map<java.lang.Comparable,java.lang.Integer> |
seriesmap
The seriesmap.
|
Constructor and Description |
---|
UserAgent() |
Modifier and Type | Method and Description |
---|---|
void |
addData(java.util.Collection<jadex.commons.Tuple2<ICryptoService,java.lang.Double>> res) |
protected void |
addValue(java.lang.Comparable<?> seriesname,
java.lang.Object valx,
java.lang.Object valy)
Add a value to a specific series of the chart.
|
void |
body()
The agent body.
|
void |
cleanup() |
protected org.jfree.chart.JFreeChart |
createChart()
Create a chart with the underlying dataset.
|
org.jfree.chart.JFreeChart |
getChart()
Get the chart.
|
javax.swing.JPanel |
getChartPanel()
Get the chart panel.
|
void |
invoke() |
protected jadex.bridge.IInternalAccess agent
protected jadex.bridge.nonfunctional.search.ComposedEvaluator<ICryptoService> ranker
protected javax.swing.JFrame frame
protected org.jfree.chart.JFreeChart chart
protected java.util.Map<java.lang.Comparable,java.lang.Integer> seriesmap
public void body() throws java.lang.Exception
java.lang.Exception
public void cleanup()
public void invoke()
public void addData(java.util.Collection<jadex.commons.Tuple2<ICryptoService,java.lang.Double>> res)
public javax.swing.JPanel getChartPanel()
public org.jfree.chart.JFreeChart getChart()
protected org.jfree.chart.JFreeChart createChart()
protected void addValue(java.lang.Comparable<?> seriesname, java.lang.Object valx, java.lang.Object valy)
valx
- The x value.valy
- The y value.data
- The data table.row
- The current data row.