Module hw06

Interface IHost

All Known Implementing Classes:
HostA, HostB, HostC

public interface IHost
Interface that represents the abstract host type
Author:
swong
  • Method Summary

    Modifier and Type
    Method
    Description
    execute​(IVisitor algo, Object... params)
    Execute the given visitor, passing the given parameters and returning the result
  • Method Details

    • execute

      Object execute(IVisitor algo, Object... params)
      Execute the given visitor, passing the given parameters and returning the result
      Parameters:
      algo - A visitor to execute
      params - A vararg of objects, used as parameters passed to the visitor
      Returns:
      The result of running the appropriate case on the visitor.