-
Notifications
You must be signed in to change notification settings - Fork 178
Class roles, responsibilities and collaborators
We want to keep classes simple and easy to understand. To help with this, we try to think of them as objects and analyze their roles, responsibilities and collaborators. There shouldn't be too many of them.
Extends FeatureHandler
Responsibilities:
- Handles interaction with 3rd party.
Collaborators:
Extends FeatureHandler
Responsibilities:
- Handles interaction with 3rd party.
Collaborators:
Responsibilities:
- Maintains list of supported features.
Collaborators: - none -
Responsibilities:
- Listens for clients.
- Creates new sessions.
Collaborators: - none -
Responsibilities:
- Associates requests with confirmations
- Handles errors and communicates them to the other end.
Collaborators:
Responsibilities:
- Stores/restores requests with unique IDs.
Collaborators: - none -
Responsibilities:
- Transforms Request/Confirmation into protocol formatted data and vice versa.
- Ensures transaction-relates requests are delivered in order.
Collaborators:
Responsibilities:
- Sends data.
- Receives data.
Collaborators: - none -
Implements Radio
Responsibilities:
- Establishes a connection to a server.
Collaborators: - none -
Implements Radio
Responsibilities:
- Accepts request from a client.
Collaborators: - none -
Responsibilities:
- Describes Request and Confirmation types.
- Holds action name.
- Forwards requests to profile.
Collaborators:
Responsibilities:
- Has list of required features.
- Handles callback for incoming Requests.
- Helps create requests.
Collaborators:
Responsibilities:
- Holds data for a request.
- Validates required fields.
- Validates input for fields.
Collaborators: - none -
Responsibilities:
- Holds data for a confirmation.
- Validates required fields.
- Validates input for fields.
Collaborators: - none -