- Type Parameters:
THost
- the type of the host to be used.
public interface IModelAdapter<THost>
Adapter to the model from the view
- Author:
- swong
-
Method Summary
Modifier and TypeMethodDescriptionReturns the result of the model processing given the visitor's classname and the given parameter string using the given host.Returns the result of the model processing given the accumulator's classname and the given parameter string using the given host with the FoldLAlgo visitor.Returns the result of the model processing given the accumulator's classname and the given parameter string using the given host with the FoldRAlgo visitor.
-
Method Details
-
runAlgo
Returns the result of the model processing given the visitor's classname and the given parameter string using the given host.- Parameters:
host
- The host that runs the given visitorclassname
- The visitor's class name to useparam
- The input parameter to use- Returns:
- The result of the processing
-
runFoldR
Returns the result of the model processing given the accumulator's classname and the given parameter string using the given host with the FoldRAlgo visitor.- Parameters:
host
- The host that runs the FoldRAlgo visitoraccClassname
- The accumulator's class name to useparam
- (added for solution) parameter string- Returns:
- The result of the processing
-
runFoldL
Returns the result of the model processing given the accumulator's classname and the given parameter string using the given host with the FoldLAlgo visitor.- Parameters:
host
- The host that runs the FoldLAlgo visitoraccClassname
- The accumulator's class name to useparam
- (Added for solution) parameter string- Returns:
- The result of the processing
-