Builder.ComponentBuilder, Builder.ComponentConnectorBuilder, Builder.ConnectorBuilder, Builder.NodeBuilder
Modifier and Type | Method and Description |
---|---|
Builder.ComponentBuilder |
withComponent(java.lang.String name)
Makes the node a component.
|
Builder.ComponentBuilder |
withComponent(java.lang.String name,
Visibility visibility)
Makes the node a component.
|
Builder.ConnectorBuilder |
withConnector()
Makes the node a connector.
|
Builder.ConnectorBuilder |
withConnector(double bufferSize)
Makes the node a connector.
|
Builder.ComponentBuilder withComponent(java.lang.String name, Visibility visibility)
Callback
annotation can
be invoked from computers that can see the component.name
- the name of the component.visibility
- the visibility of the component.Component
Builder.ComponentBuilder withComponent(java.lang.String name)
withComponent(String, Visibility)
, but with a default
visibility set to the reachability of the node.name
- the name of the component.Component
Builder.ConnectorBuilder withConnector(double bufferSize)
bufferSize
- the size of the local energy buffer.Connector
Builder.ConnectorBuilder withConnector()
withConnector(double)
, but with a default buffer size
of zero.Connector