Class Protocol
java.lang.Object
com.framed.core.Service
com.framed.communicator.driver.protocol.Protocol
- Direct Known Subclasses:
MedibusProtocol
Represents an abstract communication protocol that extends the
Service class.
A protocol is responsible for establishing and managing a connection between FRAMED and a particular Device using a specific communication standard or mechanism.
This class provides a base for concrete protocol implementations, requiring them
to define the connect() method for establishing a connection.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidconnect()Establishes a connection using the specific protocol implementation and starts the configured data export.
-
Field Details
-
id
Unique identifier for this protocol instance.
-
-
Constructor Details
-
Protocol
Creates a new Protocol instance.- Parameters:
id- the unique identifier for the protocoleventBus- the event bus used for communication and event handling
-
-
Method Details
-
connect
public abstract void connect()Establishes a connection using the specific protocol implementation and starts the configured data export. Concrete subclasses must provide the logic for connecting.
-