![JAR search and dependency download from the Maven repository](/logo.png)
jadex.micro.mandelbrot.display.DisplayService Maven / Gradle / Ivy
The newest version!
package jadex.micro.mandelbrot.display;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import jadex.classreader.SClassReader;
import jadex.classreader.SClassReader.ClassFileInfo;
import jadex.common.ClassInfo;
import jadex.common.FileFilter;
import jadex.common.SUtil;
import jadex.core.IComponent;
import jadex.core.impl.ComponentManager;
import jadex.future.Future;
import jadex.future.IFuture;
import jadex.future.ISubscriptionIntermediateFuture;
import jadex.future.SubscriptionIntermediateFuture;
import jadex.future.TerminationCommand;
import jadex.micro.mandelbrot.model.AbstractFractalAlgorithm;
import jadex.micro.mandelbrot.model.AreaData;
import jadex.micro.mandelbrot.model.IFractalAlgorithm;
import jadex.micro.mandelbrot.model.PartDataChunk;
import jadex.micro.mandelbrot.model.ProgressData;
import jadex.providedservice.annotation.Service;
import jadex.providedservice.annotation.ServiceComponent;
/**
* The service allows displaying results in the frame
* managed by the service providing agent.
*/
@Service
public class DisplayService implements IDisplayService
{
//-------- attributes --------
/** The agent. */
@ServiceComponent
protected IComponent agent;
/** The display subscribers. */
protected Map> subscribers = new HashMap>();
/** Store results till display subscribed */
protected List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy