Permalink
Browse files

Rename getOutputMessages()

  • Loading branch information...
1 parent 8f0b123 commit 3b65249ad4ac408ae65d0d4b05b2f88686f8c246 @dgomezferro committed May 31, 2012
@@ -37,7 +37,7 @@
* @param state Current state, can be mutated
* @return List of message descriptors or null
*/
- public final List<Message> getSendMessages(S state, List<Message> descriptors) {
+ public final List<Message> getOutputMessages(S state, List<Message> descriptors) {
return descriptors;
};
}
@@ -59,6 +59,6 @@
* @param descriptors Generated descriptors by processMessage()
* @return List of output messages, or null
*/
- public List<Message> getSendMessages(S state, List<D> descriptors);
+ public List<Message> getOutputMessages(S state, List<D> descriptors);
}
@@ -189,7 +189,7 @@ public PascRuntime(boolean protection) {
List<Message> result;
synchronized (this) {
List<D> descriptors = handler.processMessage(receivedMessage, state);
- result = handler.getSendMessages(state, descriptors);
+ result = handler.getOutputMessages(state, descriptors);
}
if (result != null) {
for (Message m : result) {
@@ -294,8 +294,8 @@ public ControlObject() {
}
// generate messages
- result.responses = handler.getSendMessages(state, descriptors);
- result.replicas = handler.getSendMessages(replica, replicaDescriptors);
+ result.responses = handler.getOutputMessages(state, descriptors);
+ result.replicas = handler.getOutputMessages(replica, replicaDescriptors);
}
private <D> List<Message> invoke(final MessageHandler<Message, S, D> handler,
@@ -394,7 +394,7 @@ public boolean guardPredicate(TMessage receivedMessage) {
}
@Override
- public List<Message> getSendMessages(State state, List<TMessage> descriptors) {
+ public List<Message> getOutputMessages(State state, List<TMessage> descriptors) {
return descriptors == null ? null : Collections.<Message>unmodifiableList(descriptors);
}

0 comments on commit 3b65249

Please sign in to comment.