コード例 #1
0
ファイル: ProfitPanel.java プロジェクト: harrysocool/tac-adx
  public ProfitPanel(
      TACAASimulationPanel simulationPanel, int agent, String advertiser, Color legendColor) {
    super(simulationPanel);

    this.agent = agent;
    this.advertiser = advertiser;
    currentDay = 0;
    this.legendColor = legendColor;

    simulationPanel.addTickListener(new DayListener());
    simulationPanel.addViewListener(new BankStatusListener());
    initialize();
  }
コード例 #2
0
  public AdvertiserQueryTabPanel(
      int agent,
      String advertiser,
      Query query,
      ResultsPageModel resultsPageModel,
      TACAASimulationPanel simulationPanel,
      Color legendColor) {
    this.agent = agent;
    this.advertiser = advertiser;
    this.query = query;
    this.simulationPanel = simulationPanel;
    this.legendColor = legendColor;
    this.resultsPageModel = resultsPageModel;
    agentSupport = new AgentSupport();
    simulationPanel.addViewListener(agentSupport);

    initialize();
  }