java.lang.Object
provided.utils.logic.impl.LogicalNotHost
- All Implemented Interfaces:
ILogicalHost
An ILogicalHost that represents the logical NOT of the given
ILogicalHost. That is, the trueCase of the given visitor
will be run only if the falseCase of the given hosts runs.
The falseCase of the given visitor will be run only if the
trueCase of the given visitor runs.
- Author:
- swong
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogicalNotHost(ILogicalHost host)
Construct the logical NOT of the given hosts. -
Method Summary
Modifier and TypeMethodDescription<R, P> R
execute(ILogicalVisitor<R,P> vis, P param)
Call the appropriate case on the given visitor corresponding to the current state of the host.
-
Field Details
-
host
The given logical host
-
-
Constructor Details
-
LogicalNotHost
Construct the logical NOT of the given hosts.- Parameters:
host
- The given logical host
-
-
Method Details
-
execute
Description copied from interface:ILogicalHost
Call the appropriate case on the given visitor corresponding to the current state of the host.- Specified by:
execute
in interfaceILogicalHost
- Type Parameters:
R
- The return type of the visitorP
- The input parameter type of the visitor- Parameters:
vis
- The visitor to accept which has true and false cases.param
- The input parameter to pass to the visitor's case that is called.- Returns:
- The result from running the case of the visitor
-