View Javadoc

1   /*
2    * DaCapo Benchmark Maven Plugin
3    * Copyright (C) 2010 Technische Universität Darmstadt
4    * info@scalabench.org
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  package org.scalabench.plugins.dacapo.config;
19  
20  import java.util.ArrayList;
21  import java.util.Collections;
22  import java.util.LinkedList;
23  import java.util.List;
24  
25  public class Size {
26      
27      private String name;
28      
29      private List<String> args;
30      
31      private String description;
32      
33      private int threadLimit = 0;
34      
35      private int threads = 1;
36      
37      private List<OutputFile> outputs = new LinkedList<OutputFile>();
38      
39      public String getName() {
40          return name;
41      }
42      
43      public void setName(String name) {
44          this.name = name;
45      }
46      
47      public List<String> getArgs() {
48          return args;
49      }
50      
51      public void setArgs(List<String> args) {
52          this.args = new ArrayList<String>(args);
53      }
54      
55      public String getDescription() {
56          return description;
57      }
58      
59      public void setDescription(String description) {
60          this.description = description;
61      }
62      
63      public int getThreadLimit() {
64          return threadLimit;
65      }
66      
67      public void setThreadLimit(int threadLimit) {
68          this.threadLimit = threadLimit;
69      }
70      
71      public int getThreads() {
72          return threads;
73      }
74      
75      public void setThreads(int threads) {
76          this.threads = threads;
77      }
78      
79      public List<OutputFile> getOutputs() {
80          return Collections.unmodifiableList(outputs);
81      }
82      
83      public void addOutput(OutputFile output) {
84          outputs.add(output);
85      }
86  }