Gives a handy tool with a little interface to generate networks.
2013/2014/2015/2016/2017
Fabian Adelt, Andreas Ihrig (TU Dortmund)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
table | helpers for tables |
array | helpers for arrays |
string | string handling |
pathdir | directory handling |
file | file handling |
stats | handling of simulation data, including some basic statistic methods |
variables.nls | contains all breed- and global-variables (libs/variables.nls) |
helpers.nls | contains some helper functions (libs/helpers.nls) |
helpers-visualization.nls | contains code for visual representation of the macro-layer (libs/helpers-visualization.nls) |
helpers-input.nls | contains heler functions for reading input files (libs/helpers-input.nls) |
helpers-output.nls | contains helper functions for writing output files, generating the respective file-names etc. (libs/helpers-output.nls) |
helpers-file-handling.nls | contains functions to handle files and folders (libs/helpers-file-handling.nls) |
helpers-lists.nls | contains functions for basic list operations (libs/helpers-lists.nls) |
interactions.nls | contains functions handling all interactions between agents, technologies and infrastructure elements (nodes and edges) (libs/interactions.nls) |
Simco-Net-generator-2. | Gives a handy tool with a little interface to generate networks. |
globals | Add further globals |
choose-directory | Let the user choose a directory. |
append-to-changes-list | Appends the given string and source to the changes-list |
import-dimensions | Import dimensions with names (maybe other values later) |
import-technologies | Import technologies from file. |
names-of-agent-types | Reports the names of all agent types |
filter-available-technologies | Filters only available technologies |
import-node-type | Imports a node type and creates a node-type-object |
create-node-of-type | Creates a node of given type, using a node-type-object to derive the neccessary information. |
create-edge-of-type | Instantiates an edge (fromt the calling node to the sink given, and sets its parameters according to the type given. |
import-nodes-of-type | Imports a node type and generates a number of nodes queried from user |
import-edge-type | Imports a edge-type and creates a edge-type-object |
import-edges-of-type | Imports an edge type and generates a number of edges queried from user, connecting nodes more or less randomly |
import-agents-of-type | Imports a agent type and generates a number of agents queried from user |
save-as-master | Saves the changes-list as master file which could be load later instead of doing all steps one by one |
read-from-master | Reads a master file and generates a netwok based on its content. |
save-network | Writes out the network into 6 files. |
save-network-description | Saves the characteristics of the types used to create the scenario. |
print-heading-of-order | Prints a heading of order n depending on the selected wiki style Parameter: n - integer, order of the heading message - string, name of the heading itself |
wikitable-print | Prints a tabular depending on the selected wiki style. |
set-directory | Sets the working directory to the one given via interface. |
create-type-file-path | Returns the full path to a file in the types directory |
create-master-file-path | Returns the full path to a file in the masters’ directory |
Add further globals
dir | directory to store output |
number-of-dimensions | # of dimensions |
number-of-nodes | # of nodes |
number-of-edges | # of edges |
number-of-agents | # of agents |
number-of-technologies | # of technologies |
choose-directory | Let the user choose a directory. |
append-to-changes-list | Appends the given string and source to the changes-list |
import-dimensions | Import dimensions with names (maybe other values later) |
import-technologies | Import technologies from file. |
names-of-agent-types | Reports the names of all agent types |
filter-available-technologies | Filters only available technologies |
import-node-type | Imports a node type and creates a node-type-object |
create-node-of-type | Creates a node of given type, using a node-type-object to derive the neccessary information. |
create-edge-of-type | Instantiates an edge (fromt the calling node to the sink given, and sets its parameters according to the type given. |
import-nodes-of-type | Imports a node type and generates a number of nodes queried from user |
import-edge-type | Imports a edge-type and creates a edge-type-object |
import-edges-of-type | Imports an edge type and generates a number of edges queried from user, connecting nodes more or less randomly |
import-agents-of-type | Imports a agent type and generates a number of agents queried from user |
save-as-master | Saves the changes-list as master file which could be load later instead of doing all steps one by one |
read-from-master | Reads a master file and generates a netwok based on its content. |
save-network | Writes out the network into 6 files. |
save-network-description | Saves the characteristics of the types used to create the scenario. |
print-heading-of-order | Prints a heading of order n depending on the selected wiki style Parameter: n - integer, order of the heading message - string, name of the heading itself |
wikitable-print | Prints a tabular depending on the selected wiki style. |
set-directory | Sets the working directory to the one given via interface. |
create-type-file-path | Returns the full path to a file in the types directory |
create-master-file-path | Returns the full path to a file in the masters’ directory |
to create-edge-of-type [my-edge-sink my-edge-type]
Instantiates an edge (fromt the calling node to the sink given, and sets its parameters according to the type given.
my-edge-sink | node that shall be reached by the edge instantiated within this function. |
my-edge-type | the edge-type that shall be used to instantiate the edge |
to save-network-description
Saves the characteristics of the types used to create the scenario. This can be used as a starting point for a scenario-description by including verbal fragments to the respective parts. Uses wikimedia style formats, such that the output-file can be inserted to any wiki page.
Let the user choose a directory.
to choose-directory
Appends the given string and source to the changes-list
to append-to-changes-list [item-type value-list]
Import dimensions with names (maybe other values later)
to import-dimensions [dims-file]
Reports the names of all agent types
to-report names-of-agent-types
Filters only available technologies
to-report filter-available-technologies [available-techs techs]
Imports a node type and creates a node-type-object
to-report import-node-type [my-nodes-file]
Creates a node of given type, using a node-type-object to derive the neccessary information.
to create-node-of-type [my-node-type]
Instantiates an edge (fromt the calling node to the sink given, and sets its parameters according to the type given.
to create-edge-of-type [my-edge-sink my-edge-type]
Imports a node type and generates a number of nodes queried from user
to import-nodes-of-type [my-nodes-file my-nodes-number]
Imports a edge-type and creates a edge-type-object
to-report import-edge-type [my-edge-file]
Imports an edge type and generates a number of edges queried from user, connecting nodes more or less randomly
to import-edges-of-type [my-edges-file my-edges-number]
Imports a agent type and generates a number of agents queried from user
to import-agents-of-type [my-agents-file my-agents-number]
Saves the changes-list as master file which could be load later instead of doing all steps one by one
to save-as-master
Reads a master file and generates a netwok based on its content.
to read-from-master
Writes out the network into 6 files.
to save-network
Saves the characteristics of the types used to create the scenario.
to save-network-description
Prints a heading of order n depending on the selected wiki style Parameter: n - integer, order of the heading message - string, name of the heading itself
to print-heading-of-order [n message]
Sets the working directory to the one given via interface.
to set-directory
Returns the full path to a file in the types directory
to-report create-type-file-path [file-name]
Returns the full path to a file in the masters’ directory
to-report create-master-file-path [file-name]