22 |
package nongnu.cashews.language.process; |
package nongnu.cashews.language.process; |
23 |
|
|
24 |
import java.net.URI; |
import java.net.URI; |
25 |
|
import java.net.URISyntaxException; |
26 |
|
|
27 |
/** |
/** |
28 |
* Represents the connection between two performances, which provides |
* Represents the connection between two performances, which provides |
69 |
* @serial the index of the destination input. |
* @serial the index of the destination input. |
70 |
*/ |
*/ |
71 |
private int toIndex; |
private int toIndex; |
72 |
|
|
73 |
|
/** |
74 |
|
* Sets the name of the source performance to that specified. |
75 |
|
* |
76 |
|
* @param name the name of the source performance. |
77 |
|
* @throws URISyntaxException if the supplied name is not a valid URI. |
78 |
|
*/ |
79 |
|
public void setFromPerformance(String name) |
80 |
|
throws URISyntaxException |
81 |
|
{ |
82 |
|
setFromPerformance(new URI(name)); |
83 |
|
} |
84 |
|
|
85 |
|
/** |
86 |
|
* Sets the name of the source performance to that specified. |
87 |
|
* |
88 |
|
* @param name the name of the source performance. |
89 |
|
*/ |
90 |
|
public void setFromPerformance(URI name) |
91 |
|
{ |
92 |
|
fromPerformance = name; |
93 |
|
} |
94 |
|
|
95 |
|
/** |
96 |
|
* Sets the name of the target performance to that specified. |
97 |
|
* |
98 |
|
* @param name the name of the target performance. |
99 |
|
* @throws URISyntaxException if the supplied name is not a valid URI. |
100 |
|
*/ |
101 |
|
public void setToPerformance(String name) |
102 |
|
throws URISyntaxException |
103 |
|
{ |
104 |
|
setToPerformance(new URI(name)); |
105 |
|
} |
106 |
|
|
107 |
|
/** |
108 |
|
* Sets the name of the target performance to that specified. |
109 |
|
* |
110 |
|
* @param name the name of the target performance. |
111 |
|
*/ |
112 |
|
public void setToPerformance(URI name) |
113 |
|
{ |
114 |
|
toPerformance = name; |
115 |
|
} |
116 |
|
|
117 |
} |
} |
|
|
|