projects
/
mir.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.1 restoration
[mir.git]
/
source
/
mir
/
producer
/
ProducerFactory.java
diff --git
a/source/mir/producer/ProducerFactory.java
b/source/mir/producer/ProducerFactory.java
index
d6b9ebe
..
d3ca018
100755
(executable)
--- a/
source/mir/producer/ProducerFactory.java
+++ b/
source/mir/producer/ProducerFactory.java
@@
-29,8
+29,8
@@
*/
package mir.producer;
*/
package mir.producer;
-import java.util.Iterator;
import java.util.Map;
import java.util.Map;
+import java.util.List;
public interface ProducerFactory {
public interface ProducerVerb {
public interface ProducerFactory {
public interface ProducerVerb {
@@
-38,10
+38,24
@@
public interface ProducerFactory {
String getDescription();
}
String getDescription();
}
+ /**
+ * The identifying name of the factory
+ */
public String getName();
public String getName();
+
+ /**
+ * Returns <code>true</code> if <code>aVerb</code> is a valid verb for this factory
+ */
public boolean allowVerb(String aVerb);
public boolean allowVerb(String aVerb);
+ /**
+ * Instantiates a producer based on the supplied verb
+ */
public Producer makeProducer(String aVerb, Map aStartingValues) throws ProducerFailure, ProducerExc;
public Producer makeProducer(String aVerb, Map aStartingValues) throws ProducerFailure, ProducerExc;
- public Iterator verbs(); /* returns ProducerVerbs */
+
+ /**
+ * The set of pre-defined verbs. Returns a list of {@link ProducerVerb}s
+ */
+ public List verbs();
}
}