83 lines
1.7 KiB
Java
83 lines
1.7 KiB
Java
package org.gcube.dataanalysys.dataminerpoolmanager.datamodel;
|
|
|
|
import java.util.Collection;
|
|
import java.util.Vector;
|
|
|
|
public class Algorithm {
|
|
|
|
private String name;
|
|
|
|
private String description;
|
|
|
|
private String category;
|
|
|
|
private String clazz;
|
|
|
|
private Collection<Action> actions;
|
|
|
|
private Collection<Dependency> dependencies;
|
|
|
|
public Algorithm() {
|
|
this.actions = new Vector<>();
|
|
this.dependencies = new Vector<>();
|
|
Dependency p = new Dependency();
|
|
***REMOVED***
|
|
|
|
public void addDependency(Dependency dep) {
|
|
this.dependencies.add(dep);
|
|
***REMOVED***
|
|
|
|
public void addAction(Action action) {
|
|
this.actions.add(action);
|
|
***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 String getCategory() {
|
|
return category;
|
|
***REMOVED***
|
|
|
|
public void setCategory(String category) {
|
|
this.category = category;
|
|
***REMOVED***
|
|
|
|
public Collection<Action> getActions() {
|
|
return actions;
|
|
***REMOVED***
|
|
|
|
public Collection<Dependency> getDependencies() {
|
|
return dependencies;
|
|
***REMOVED***
|
|
|
|
public String toString() {
|
|
String out = "Algorithm: " + this.getName()+"\n";
|
|
out+=" Class Name: " + this.getClazz()+"\n";
|
|
out+=" Description: " + this.getDescription()+"\n";
|
|
out+=" Dependencies: " + this.getDependencies()+"\n";
|
|
return out;
|
|
***REMOVED***
|
|
|
|
public String getClazz() {
|
|
return clazz;
|
|
***REMOVED***
|
|
|
|
public void setClazz(String clazz) {
|
|
this.clazz = clazz;
|
|
***REMOVED***
|
|
|
|
***REMOVED***
|