-
Notifications
You must be signed in to change notification settings - Fork 218
SubscriptionMatching
jhaack edited this page Oct 21, 2015
·
2 revisions
Declaratively attach topic prefix and additional tests for topic matching to agent methods allowing for automated callback registration and topic subscription.
Example:
class MyAgent(BaseAgent):
@match_regex('topic1/(sub|next|part)/title[1-9]')
def on_subtopic(topic, headers, message, match):
# This is only executed if topic matches regex
...
@match_glob('root/sub/*/leaf')
def on_leafnode(topic, headers, message, match):
# This is only executed if topic matches glob
...
@match_exact('building/xyz/unit/condenser')
@match_start('campus/PNNL')
@match_end('unit/blower')
def on_multimatch(topic, headers, message, match):
# Multiple matchers can be attached to a method
...
'''
- Platform Agent
- VOLTTRON Central Agent
- Platform Commands
- Platform Configuration
- [Platform Hardening Security Recommendations] (Linux-Platform-Hardening-Recommendations-for-VOLTTRON-users)
- ...
- [Building VOLTTRON] (Building-VOLTTRON)
- Example Agents
- Agent Development
- [Shortcut Scripts] (Scripts)
- [VOLTTRON Conventions] (Conventions)
- [sMAP Test Server] (sMAP-Test-Instance)
- [Design Discussions] (Design Discussions)
- VIP
- VIP - VOLTTRON Interconnect Protocol
- RPC by example
- VIP - Known Identities
- VIP - Authentication
- VIP - Authorization
- Protecting Pub/Sub Topics
- Setup Eclipse for VOLTTRON
- Deployment Walkthrough
- Forward Historian Walkthrough
- [Create New Historian Agent] (Developing-Historian-Agents)
- [Create New Driver Agent] (Develop-Driver-Agent)
- [Developing With Eclipse] (Eclipse)
- Migrations
- [2.x to 3.x Migration](2.x-to 3.x-Migration)
- 1.2 to 2.0 Migration
- [Deployment Recommendations](Recommendations for Deployments)
VOLTTRON Versions and Features
Transactional Network Platform Overview
- Established Topics
- Working with the Actuator Agent
- Logging
- [Multi-Node Communication] (MultiBuildingMessaging)
Information Exchange Standards