1
|
package eu.dnetlib.dhp.common.java;
|
2
|
|
3
|
import java.util.Map;
|
4
|
|
5
|
import eu.dnetlib.dhp.common.java.porttype.PortType;
|
6
|
|
7
|
/**
|
8
|
* A class that groups information about input and output ports, i.e.
|
9
|
* their (name of the port -> type of the port) mappings.
|
10
|
* @author Mateusz Kobos
|
11
|
*/
|
12
|
public class Ports {
|
13
|
private final Map<String, PortType> input;
|
14
|
private final Map<String, PortType> output;
|
15
|
|
16
|
public Ports(Map<String, PortType> input, Map<String, PortType> output){
|
17
|
this.input = input;
|
18
|
this.output = output;
|
19
|
}
|
20
|
|
21
|
public Map<String, PortType> getInput() {
|
22
|
return input;
|
23
|
}
|
24
|
public Map<String, PortType> getOutput() {
|
25
|
return output;
|
26
|
}
|
27
|
}
|