added Note to high level protocols to use andThen
@@ -17,6 +17,7 @@ public class HighlevelProtocols {
DatasetSelectionBySparqlFunction modifiedSelection = HighlevelFunctionFactory.getModifiedSelection();
Function<Dataset, Dataset> agreementFunction = HighlevelFunctionFactory.getAgreementFunction();
+ // wrap this code with in andThen loop see : https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html
Dataset acknowledged = acknowledgedSelection.apply(conversationDataset);
Dataset modified = modifiedSelection.apply(acknowledged);
Dataset agreed = agreementFunction.apply(modified);
@@ -36,6 +37,7 @@ public class HighlevelProtocols {
DatasetSelectionBySparqlFunction modifiedSelection = HighlevelFunctionFactory.getModifiedSelection();
Function<Dataset, Dataset> proposalFunction = HighlevelFunctionFactory.getProposalFunction();
+ // wrap this code with in andThen loop see : https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html
Dataset acknowledged = acknowledgedSelection.apply(conversationDataset);
Dataset modified = modifiedSelection.apply(acknowledged);
Dataset proposed = proposalFunction.apply(modified);
@@ -57,6 +59,7 @@ public class HighlevelProtocols {
DatasetSelectionBySparqlFunction modifiedSelection = HighlevelFunctionFactory.getModifiedSelection();
Function<Dataset, Dataset> proposalToCancelFunction = HighlevelFunctionFactory.getProposalToCancelFunction();
+ // wrap this code with in andThen loop see : https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html
Dataset acknowledged = acknowledgedSelection.apply(conversationDataset);
Dataset modified = modifiedSelection.apply(acknowledged);
Dataset proposedtocancel = proposalToCancelFunction.apply(modified);
