public abstract class DNP3Context extends PAPContext
Modifier | Constructor and Description |
---|---|
protected |
DNP3Context(Optional<Metadata> metadata,
Optional<Traces> traces)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addRemoteOrigin(Origin remoteOrigin,
Attributes originAttributes)
Adds a remote origin.
|
boolean |
addRemotePoint(Point remotePoint,
Attributes pointAttributes)
Adds a remote point.
|
protected int |
getDefaultPortForRemoteOrigin()
Gets the default port for a remote origin.
|
Optional<Point> |
getPoint(PointType pointType,
ObjectRange objectRange)
Gets the point for a point type and object range.
|
String |
getProtocolName()
Gets the protocol name.
|
Collection<? extends DNP3Proxy> |
getRemoteProxies()
Gets all the remote proxies.
|
Optional<DNP3Proxy> |
getRemoteProxyBySerialPortName(String serialPortName)
Gets the remote proxy for the specified serial port name.
|
Optional<DNP3Proxy> |
getRemoteProxyByTCPAddress(InetAddress address)
Gets the remote proxy for the specified TCP address.
|
Optional<DNP3Proxy> |
getRemoteProxyByUDPAddress(InetAddress address)
Gets the remote proxy for the specified UDP address.
|
DNP3StationPoint |
getRemoteStationPoint(Point point)
Gets a remote station point.
|
LogicalDevice[] |
logicalDevices(String[] logicalDeviceDecls,
String endPointName)
Returns logical devices from the declarations.
|
protected abstract DNP3Proxy |
newRemoteProxy(Origin remoteOrigin)
Returns a new remote proxy.
|
fetchMetadata, getMetadata, getRemoteOrigin, getRemotePoint, getRemotePoints, getRemoteProxy, getRemoteProxyByOrigin, getRemoteProxyByOrigin, getSupport, getThisLogger, getTraces, getValueFilters, hasLogged, isClientContext, isPointActive, isRemoteOriginNeeded, isRemotePointNeeded, isServerContext, registerRemotePoint, registerRemoteProxy, setUp, tearDown
protected DNP3Context(@Nonnull Optional<Metadata> metadata, @Nonnull Optional<Traces> traces)
metadata
- The optional metadata.traces
- The traces (optional).public boolean addRemoteOrigin(Origin remoteOrigin, Attributes originAttributes)
addRemoteOrigin
in class PAPContext
remoteOrigin
- The remote origin.originAttributes
- The origin attributes.public boolean addRemotePoint(Point remotePoint, Attributes pointAttributes)
addRemotePoint
in class PAPContext
remotePoint
- The remote point.pointAttributes
- The point attributes.@Nonnull @CheckReturnValue public final Optional<Point> getPoint(@Nonnull PointType pointType, @Nonnull ObjectRange objectRange)
pointType
- The point type.objectRange
- The object range for the point.public String getProtocolName()
getProtocolName
in class PAPContext
public Collection<? extends DNP3Proxy> getRemoteProxies()
getRemoteProxies
in class PAPContext
@Nonnull @CheckReturnValue public final Optional<DNP3Proxy> getRemoteProxyBySerialPortName(@Nonnull String serialPortName)
serialPortName
- The serial port name.@Nonnull @CheckReturnValue public final Optional<DNP3Proxy> getRemoteProxyByTCPAddress(@Nonnull InetAddress address)
address
- The TCP address.@Nonnull @CheckReturnValue public final Optional<DNP3Proxy> getRemoteProxyByUDPAddress(@Nonnull InetAddress address)
address
- The UDP address.@Nonnull @CheckReturnValue public DNP3StationPoint getRemoteStationPoint(@Nonnull Point point)
point
- A metadata point.IllegalArgumentException
- When the station point is unknown.@Nullable @CheckReturnValue public final LogicalDevice[] logicalDevices(@Nonnull String[] logicalDeviceDecls, @Nonnull String endPointName)
logicalDeviceDecls
- The logical device declarations.endPointName
- The end point name.protected int getDefaultPortForRemoteOrigin()
getDefaultPortForRemoteOrigin
in class PAPContext
protected abstract DNP3Proxy newRemoteProxy(Origin remoteOrigin)
newRemoteProxy
in class PAPContext
remoteOrigin
- The remote origin for the proxy.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.