package nl.esciencecenter.amuse.distributed.jobs;

public class FunctionJobDescription extends AmuseJobDescription {
    
    private static final long serialVersionUID = 1L;
    
    private final String function;
    private final String arguments;
    private final String kwarguments;


    public FunctionJobDescription(String function, String arguments, String kwarguments, String stdoutFile, String stderrFile, String nodeLabel) {
        super(stdoutFile, stderrFile, nodeLabel);
        
        this.function = function;
        this.arguments = arguments;
        this.kwarguments = kwarguments;
    }

    @Override
    public int getNrOfSlots() {
        return 1;
    }

    @Override
    public String getType() {
        return "function";
    }
    
    public String getFunction() {
        return function;
    }
    
    public String getArguments() {
        return arguments;
    }
    
    public String getKwArguments() {
        return kwarguments;
    }


    @Override
    public String toString() {
        return "FunctionJobDescription [id=" + id + ", stdoutFile=" + stdoutFile + ", stderrFile=" + stderrFile + ", label="
                + label + "]";
    }

}

@@ -1060,16 +1060,169 @@
 iption %5B
+function length=%22 + function.length() + %22, arguments length=%22 + arguments.length() + %22, kwarguments length=%22 + kwarguments.length()%0A                + %22, 
 id=%22 + i
@@ -1297,32 +1297,16 @@
  label=%22
-%0A               
  + label

improve tostring