1 package dol.datamodel.mapping;
3 import dol.visitor.MapVisitor;
6 * This class represents a binding element in the mapping.
8 abstract public class Binding extends MapResource {
11 * Constructor to create a Binding with a name.
13 public Binding(String name) {
19 * @param x A Visitor Object.
21 public void accept(MapVisitor x) {
22 x.visitComponent(this);
28 * @return a new instance of the Binding.
30 public Object clone() {
31 Binding newObj = (Binding) super.clone();
36 * Get the range of this binding.
40 public String getRange() {
45 * Set the range of this binding.
47 * @param range new range value
49 public void setRange(String range) {
54 * Get the type of this binding.
58 public String getType() {
63 * Return a description of the binding.
65 * @return a description of the binding.
67 public String toString() {
68 return "Binding: " + getName() ;
72 * Range of the iterator when the instance belongs to an iterated
75 protected String _range;
76 protected String _type;
79 * Type specifier for communication bindings.
81 public static final String COMMUNICATION = "communication";
84 * Type specifier for computation bindings.
86 public static final String COMPUTATION = "computation";