helics  3.0.1
FilterCoordinator.hpp
1 /*
2 Copyright (c) 2017-2021,
3 Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
4 Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
5 SPDX-License-Identifier: BSD-3-Clause
6 */
7 #pragma once
8 
9 #include "GlobalFederateId.hpp"
10 
11 #include <vector>
12 namespace helics {
13 class FilterInfo;
18  public:
19  std::vector<FilterInfo*> sourceFilters;
20  FilterInfo* destFilter = nullptr;
21 
22  std::vector<FilterInfo*>
24  std::vector<FilterInfo*> cloningDestFilters;
25  bool hasSourceFilters = false;
26  bool hasDestFilters = false;
28  0;
30  0;
31 
32  void closeFilter(GlobalHandle filt);
33 };
34 } // namespace helics
helics::FilterCoordinator::hasSourceFilters
bool hasSourceFilters
indicator that an endpoint has source filters
Definition: FilterCoordinator.hpp:25
helics::FilterCoordinator::destFilter
FilterInfo * destFilter
the destination operator handle
Definition: FilterCoordinator.hpp:20
helics::FilterInfo
Definition: FilterInfo.hpp:29
helics::FilterInfo::core_id
const GlobalBrokerId core_id
id of the core that manages the filter
Definition: FilterInfo.hpp:43
helics::FilterCoordinator::sourceFilters
std::vector< FilterInfo * > sourceFilters
ordered set of source operators
Definition: FilterCoordinator.hpp:19
helics::FilterCoordinator
Definition: FilterCoordinator.hpp:17
disconnected_flag
@ disconnected_flag
flag indicating that a broker/federate is disconnected
Definition: flagOperations.hpp:30
helics::FilterCoordinator::hasDestFilters
bool hasDestFilters
indicator that an endpoint has a destination filter
Definition: FilterCoordinator.hpp:26
helics::GlobalHandle::handle
InterfaceHandle handle
the interface handle component
Definition: GlobalFederateId.hpp:131
helics::FilterInfo::handle
const InterfaceHandle handle
id handle of the filter
Definition: FilterInfo.hpp:44
setActionFlag
void setActionFlag(FlagContainer &M, FlagIndex flag)
Definition: flagOperations.hpp:77
helics::FilterCoordinator::ongoingSourceTransactions
int ongoingSourceTransactions
counter for the number of filtered message returns expected
Definition: FilterCoordinator.hpp:27
helics::FilterCoordinator::cloningDestFilters
std::vector< FilterInfo * > cloningDestFilters
storage for cloning destination filters
Definition: FilterCoordinator.hpp:24
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
helics::FilterCoordinator::ongoingDestTransactions
int ongoingDestTransactions
counter for the number of filtered message returns expected on Destination
Definition: FilterCoordinator.hpp:29
helics::GlobalHandle
Definition: GlobalFederateId.hpp:128
flagOperations.hpp
helics::GlobalHandle::fed_id
GlobalFederateId fed_id
the federate id component
Definition: GlobalFederateId.hpp:130
helics::FilterCoordinator::closeFilter
void closeFilter(GlobalHandle filt)
Definition: FilterCoordinator.cpp:13
helics::FilterCoordinator::allSourceFilters
std::vector< FilterInfo * > allSourceFilters
storage for all the source filters before sorting
Definition: FilterCoordinator.hpp:23