private final class ConnectAction.VisitOwnerOfSecondAdapterWithOneType extends java.lang.Object implements ConnectVisitor
Modifier and Type | Field and Description |
---|---|
private Adapter |
adapter1
the first adapter which owner is an internet node.
|
private ConnectingType |
type1
the type of the first adapter, that owner was a internet node.
|
Modifier | Constructor and Description |
---|---|
private |
VisitOwnerOfSecondAdapterWithOneType(ConnectingType type1,
Adapter adapter1)
The Constructor of the Visitor.
|
Modifier and Type | Method and Description |
---|---|
void |
adapter(NetworkAdapter adapter)
visitor pattern.
|
void |
slot(Slot slot)
visitor pattern.
|
private final ConnectingType type1
private final Adapter adapter1
private VisitOwnerOfSecondAdapterWithOneType(ConnectingType type1, Adapter adapter1)
type1
- type of the internet which adapter should be connected.adapter1
- adapter1 which should be connected.public void slot(Slot slot)
ConnectVisitor
slot
in interface ConnectVisitor
slot
- the slot.public void adapter(NetworkAdapter adapter)
ConnectVisitor
adapter
in interface ConnectVisitor
adapter
- the networkAdapter.