mirror of
https://github.com/JHUAPL/kami.git
synced 2026-01-08 14:33:53 -05:00
Remove excess spaces at end of files
This commit is contained in:
@@ -65,7 +65,7 @@ install:
|
||||
- travis_retry wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.18.3/cmake-3.18.3-SHA-256.txt.asc
|
||||
# this is optional, but useful:
|
||||
# do a quick md5 check to ensure that the archive we downloaded did not get compromised, leave off GPG verification for now
|
||||
- sha256sum --ignore-missing -c cmake-3.18.3-SHA-256.txt
|
||||
- sha256sum --ignore-missing -c cmake-3.18.3-SHA-256.txt
|
||||
# extract the binaries; the output here is quite lengthy,
|
||||
# so we swallow it to not clutter up the travis console
|
||||
- tar -xvf cmake-3.18.3-Linux-x86_64.tar.gz > /dev/null
|
||||
|
||||
@@ -19,4 +19,4 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
||||
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
SOFTWARE.
|
||||
|
||||
@@ -37,7 +37,7 @@ set(SPHINX_INDEX_FILE ${SPHINX_BUILD}/index.html)
|
||||
# - Our doc files have been updated
|
||||
# - The Sphinx config has been updated
|
||||
add_custom_command(OUTPUT ${SPHINX_INDEX_FILE}
|
||||
COMMAND
|
||||
COMMAND
|
||||
${SPHINX_EXECUTABLE} -b html
|
||||
# Tell Breathe where to find the Doxygen output
|
||||
-Dbreathe_projects.kami=${DOXYGEN_OUTPUT_DIR}/xml
|
||||
|
||||
@@ -124,7 +124,7 @@ void MoneyAgent::prinfo(void) const {
|
||||
|
||||
BoltzmannWealthModel::BoltzmannWealthModel(unsigned int numberAgents, unsigned int lengthX, unsigned int lengthY, unsigned int seed) {
|
||||
world = new MultiGrid2D(lengthX, lengthY, true, true);
|
||||
if(seed == 0)
|
||||
if(seed == 0)
|
||||
sched = new RandomScheduler(this);
|
||||
else
|
||||
sched = new RandomScheduler(this, seed);
|
||||
|
||||
@@ -91,7 +91,7 @@ class LIBKAMI_EXPORT TwoActionRandomScheduler : public RandomScheduler {
|
||||
/// \details This method will randomize the list of TwoActionAgents in the
|
||||
/// scheduler's internal queue and then execute the `TwoActionAgent::stepA()`
|
||||
/// method for every TwoActionAgent assigned to this scheduler in the
|
||||
/// randomized order, then execute the `TwoActionAgent::stepB()` method for every
|
||||
/// randomized order, then execute the `TwoActionAgent::stepB()` method for every
|
||||
// TwoActionAgent assigned to this scheduler in the randomized order,
|
||||
void step();
|
||||
};
|
||||
|
||||
@@ -37,15 +37,15 @@
|
||||
namespace kami {
|
||||
|
||||
/// \brief Will execute all agent steps in a sequential order.
|
||||
/// \details A sequential scheduler will iterate over the agents assigned
|
||||
/// to the scheduler and call their `step()` function in a sequential order.
|
||||
/// \details A sequential scheduler will iterate over the agents assigned
|
||||
/// to the scheduler and call their `step()` function in a sequential order.
|
||||
/// That order is preserved between calls to `step()` but may be modified by
|
||||
/// `addAgent()` or `deleteAgent()`.
|
||||
/// \pre First create a Model for the scheduler to live in.
|
||||
class LIBKAMI_EXPORT SequentialScheduler : public Scheduler {
|
||||
public:
|
||||
/// \brief Constructor.
|
||||
/// \details The Model parameter is used by the scheduler to get
|
||||
/// \brief Constructor.
|
||||
/// \details The Model parameter is used by the scheduler to get
|
||||
/// access to an Agent. The Model is presumed to maintain a master
|
||||
/// list of all Agents in the Model and the Model can be queried for
|
||||
/// a reference to any particular Agent at `step()` time.
|
||||
@@ -65,8 +65,8 @@ class LIBKAMI_EXPORT SequentialScheduler : public Scheduler {
|
||||
void deleteAgent(AgentID oldAgentID);
|
||||
|
||||
/// \brief Execute a single time step.
|
||||
/// \details This method will step through the list of Agents in the
|
||||
/// scheduler's internal queue and then execute the `Agent::step()`
|
||||
/// \details This method will step through the list of Agents in the
|
||||
/// scheduler's internal queue and then execute the `Agent::step()`
|
||||
/// method for every Agent assigned to this scheduler in the order
|
||||
/// assigned.
|
||||
void step();
|
||||
|
||||
@@ -37,15 +37,15 @@
|
||||
namespace kami {
|
||||
|
||||
/// \brief Will execute all agent steps in a sequential order.
|
||||
/// \details A sequential scheduler will iterate over the agents assigned
|
||||
/// to the scheduler and call their `step()` function in a sequential order.
|
||||
/// \details A sequential scheduler will iterate over the agents assigned
|
||||
/// to the scheduler and call their `step()` function in a sequential order.
|
||||
/// That order is preserved between calls to `step()` but may be modified by
|
||||
/// `addAgent()` or `deleteAgent()`.
|
||||
/// \pre First create a Model for the scheduler to live in.
|
||||
class LIBKAMI_EXPORT StagedScheduler : public Scheduler {
|
||||
public:
|
||||
/// \brief Constructor.
|
||||
/// \details The Model parameter is used by the scheduler to get
|
||||
/// \brief Constructor.
|
||||
/// \details The Model parameter is used by the scheduler to get
|
||||
/// access to an Agent. The Model is presumed to maintain a master
|
||||
/// list of all Agents in the Model and the Model can be queried for
|
||||
/// a reference to any particular Agent at `step()` time.
|
||||
|
||||
@@ -33,7 +33,7 @@ create_library(NAME libkami
|
||||
configure_file(
|
||||
"${CMAKE_SOURCE_DIR}/include/kami/config.h.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/generated_headers/kami/config.h")
|
||||
|
||||
|
||||
set_target_properties(libkami PROPERTIES VERSION ${KAMI_VERSION_STRING}
|
||||
SOVERSION ${KAMI_VERSION_MAJOR}
|
||||
OUTPUT_NAME kami)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 2020 The Johns Hopkins University Applied Physics
|
||||
* Copyright (c) 2020 The Johns Hopkins University Applied Physics
|
||||
* Laboratory LLC
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 2020 The Johns Hopkins University Applied Physics
|
||||
* Copyright (c) 2020 The Johns Hopkins University Applied Physics
|
||||
* Laboratory LLC
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
|
||||
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.13.0 FATAL_ERROR)
|
||||
|
||||
find_package(spdlog)
|
||||
|
||||
create_test( NAME
|
||||
create_test( NAME
|
||||
unit-kami-agentid
|
||||
SOURCES
|
||||
unit-kami-agentid.cc
|
||||
@@ -20,7 +20,7 @@ create_test( NAME
|
||||
PUBLIC_COMPILE_FEATURES
|
||||
${COVERAGE_FLAGS})
|
||||
|
||||
create_test( NAME
|
||||
create_test( NAME
|
||||
unit-kami-agent
|
||||
SOURCES
|
||||
unit-kami-agent.cc
|
||||
|
||||
Reference in New Issue
Block a user