All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.barrybecker4.simulation.trading.model.generationstrategy.AbstractGenerationStrategy Maven / Gradle / Ivy

There is a newer version: 1.6.2
Show newest version
/*
 * Copyright by Barry G. Becker, 2015. Licensed under MIT License: http://www.opensource.org/license.MIT
 */
package com.barrybecker4.simulation.trading.model.generationstrategy;

import javax.swing.*;

/**
 * This naive strategy puts everything in the market at the start and sells it all at the end.
 *
 * @author Barry Becker
 */
public abstract class AbstractGenerationStrategy implements IGenerationStrategy {

    /** The UI to allow the user to configure the options */
    public JPanel getOptionsUI() {
        return new JPanel();
    }

    /** Call when OK button is pressed to persist selections */
    public void acceptSelectedOptions() {}


    public String toString() {
        return getName() + ": " + getDescription();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy