Skip to content

Commit 1f8fc74

Browse files
committed
Add RegulatoryNetwork behavior stub and conditional include
Add an empty RegulatoryNetwork behavior class (stub) that subclasses Behavior. The header is included in biodynamo.h only when USE_BOOST is defined. Implementation of Run() is left for follow-up work.
1 parent 9fb68ef commit 1f8fc74

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

src/biodynamo.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
#include "core/behavior/gene_regulation.h"
3232
#include "core/behavior/growth_division.h"
3333
#include "core/behavior/secretion.h"
34+
#ifdef USE_BOOST
35+
#include "core/behavior/regulatory_network.h"
36+
#endif
3437
#include "core/behavior/stateless_behavior.h"
3538
#include "core/environment/environment.h"
3639
#include "core/execution_context/copy_execution_context.h"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// -----------------------------------------------------------------------------
2+
//
3+
// Copyright (C) 2021 CERN & University of Surrey for the benefit of the
4+
// BioDynaMo collaboration. All Rights Reserved.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
//
9+
// See the LICENSE file distributed with this work for details.
10+
// See the NOTICE file distributed with this work for additional information
11+
// regarding copyright ownership.
12+
//
13+
// -----------------------------------------------------------------------------
14+
15+
#ifndef CORE_BEHAVIOR_REGULATORY_NETWORK_H_
16+
#define CORE_BEHAVIOR_REGULATORY_NETWORK_H_
17+
18+
#include "core/behavior/behavior.h"
19+
20+
#include "boost/numeric/odeint.hpp"
21+
#include "boost/phoenix/core.hpp"
22+
#include "boost/phoenix/operator.hpp"
23+
24+
namespace bdm {
25+
class RegulatoryNetwork : public Behavior {
26+
BDM_BEHAVIOR_HEADER(RegulatoryNetwork, Behavior, 1);
27+
28+
public:
29+
RegulatoryNetwork() { AlwaysCopyToNew(); }
30+
virtual ~RegulatoryNetwork() = default;
31+
32+
void Run(Agent* agent) override {};
33+
34+
};
35+
}
36+
37+
#endif // CORE_BEHAVIOR_REGULATORY_NETWORK_H_
38+

0 commit comments

Comments
 (0)