package org.gcube.dataanalysis.dataminer.poolmanager.datamodel; import java.util.Collection; import java.util.Vector; public class Cluster { /** * The set of hosts belonging to the cluster. */ private Collection hosts; /** * A name for this cluster. */ private String name; /** * A description of this cluster. */ private String description; /** * The set of algorithms deployed on this cluster (i.e. on all its hosts) */ private Collection algoSets; public Cluster() { this.hosts = new Vector<>(); this.algoSets = new Vector<>(); ***REMOVED*** public void addAlgorithmSet(AlgorithmSet set) { this.algoSets.add(set); ***REMOVED*** public void addHost(Host host) { this.hosts.add(host); ***REMOVED*** public Collection getHosts() { return hosts; ***REMOVED*** public String getName() { return name; ***REMOVED*** public void setName(String name) { this.name = name; ***REMOVED*** public String getDescription() { return description; ***REMOVED*** public void setDescription(String description) { this.description = description; ***REMOVED*** public Collection getAlgorithmSets() { return algoSets; ***REMOVED*** public String toString() { String out = "Cluster: "+this.name+"\n"; for(Host h:this.getHosts()) { out+=" "+h+"\n"; ***REMOVED*** return out; ***REMOVED*** ***REMOVED***