Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

Common Tasks

Marvin Frick edited this page May 28, 2013 · 1 revision

'Output of show_tasks verbose=1:'

add_poststep: makes $task being run aftereach simulation round

add_prestep: makes $task being run beforeeach simulation round

chain_transm_model: Appends a transmission model specified by $name to the current transmission model. The current model must be of type ChainableTransmissionModel.

collect_simple_app: Collect information from SimpleAppProcessor

connectivity: get the average connectivity

constant_elevation: creates a flat elevation at level $height with name $name

create_absolute_error_distance_estimate: $name: Name of the distance estimate, $error: absolute error, $offset

create_normal: creates a random variable with normal distribution with mean $mean, variance $variance or standard deviation $stddev (whichever is given). gets name $name, if specified, otherwise an autogenerated name

create_polygon_distance_estimate: $name: Name of the distance estimate,

create_randomized_distance_estimate: $multiplier $offset $chop_low $resample_chopped

create_uniform: creates a random variable with uniform distribution on $lower..$upper (endpoints inclusive iff $lower_incl resp. $upper_incl). gets name $name, if specified, otherwise an autogenerated name

cuboid_topology: creates a 3D cuboidal topology named $name on [$x1,$x2] x [$y1,$y2] x [$z1,$z2]

cuboid_world: fills a cuboid with random points

degree_sequence: writes degree sequence to $ds_out_file

dhist: writes a degree histogram to $dhist_file

dump_location: dump estimated positions (or real ones if !($dloc_print_estimates)) to $dloc_out_file

dump_transmission_stats: prints the transmission statististics, if a stats_chain transmission model is in use

exampletask: example task for seeing how a task has to be implemented

flegsens_world: flegsens world creator

load_plugin: loads the shawn plugin $plugin. filename can be passed as $file, or be guessed automatically

load_world: Reads topology from a XML file

localization_anchor_placement: places anchors on geometric figures

log_sys_resources: prints out a summary on the system resources used up so far

logging_load_cfg: Init logging library. Load properties from given file.

logging_reconfigure: Reconfigure logging library. Add, delete or change logging properties.

node_movement: Enables Nodes to be moved

polygon_topology_postscript:

populate: ...

prepare_world: constructs an empty world with given models. $transm_model defaults to 'reliadble'

random_seed: manages the random number generator's seed

rect_world: fills a rectangle with random points

rectangle_topology: creates a 2D rectangular topology named $name on [$x1,$x2] x [$y1,$y2]

reset_movement: Resets the world

save_world: Saves the state of the world and the nodes to a xml file.

show_distance_estimates: prints all registered NodeDistanceEstimate instances

show_edge_models: prints all registered edge models (resp. factories)

show_processors: prints all known processors (resp. factories)

show_random_variables: prints all registered random variables

show_tasks: prints all known simulation tasks

simulation: runs the real simulation

tagtest:

topology_25d: creates a 2.5D topology named $name. base 2d topology is $base, elevation is $elevation. (optional) upper elevation is $upper_elevation.

vis_breathing_double: create a breathing value property

vis_constant_double: create a constant double property

vis_constant_int: create a constant value property

vis_constant_vec: create a constant value property

vis_create: Creates a new visualization named $vis for the current world

vis_create_edges: XXX

vis_create_edges_by_tag: XXX

vis_create_edges_tree: XXX

vis_create_estimated_edges: Creates edges from real to estimated node positions

vis_create_group: XXX

vis_create_label: Creates labels attached to nodes

vis_create_liveview: XXX

vis_external_animation: XXX

vis_graphics: XXX

vis_group_add: XXX

vis_group_add_by_tag: XXX

vis_real_node_position: create a property that returns nodes' real positions. Note 1: Only works for node elements. Note 2: Returns erraneous values if visualization time and simulation time are different. If $node is specified, ...

vis_show_comradius: Shows communication radius

vis_simple_camera: XXX

vis_single_snapshot: XXX

vis_smooth_double: create a smooth value property

vis_smooth_vec: create a smooth value property

vis_tag_color_vec: create a tag-dependend vector

vis_tag_sample: Adds some sample string tags to nodes.

ws08-shortestpath: attaches a tag to the nodes and writes routing information into it

xml_polygon_topology: Creates a 2D polygonal topology named $name from file $file. The optional parameter $create_outer_hull (or for compatibility $xml_create_outer_hull) creates the outer polygon automatically. In addition, $fix_non_simple_polygons will create an convex hull around non simple polygons. A simple polygon is a polygon which its sides do not intersect.

xyz_file_elevation: Creates an elevation with name $name, based on .xyz file $file. If $xy_placement=scale (default), it will be scaled to a grid size of $x_scale x $y_scale (or $xy_scale x $xy_scale) with origin at ($x1,$y1). If $xy_placement=box, it will be scaled to fit into the rectangle [$x1,$x2] x [$y1,$y2]. If $z_placement=scale (default), Z is scaled by $z_scale and shifted $z_base. If $z_placement=box, Z is scaled such that the smallest value becomes $z1 and the largest becomes $z2.