Index

Package: Swarm_Structures_Base

Description

package Swarm_Structures_Base is
Jan & Uwe R. Zimmer, Australia, 2013

Packages

Protected_Point_3D (new Generic_Protected)

package Protected_Point_3D  is new Generic_Protected (Point_3D,  Zero_Vector_3D);

Protected_Vector_3D (new Generic_Protected)

package Protected_Vector_3D is new Generic_Protected (Vector_3D, Zero_Vector_3D);

Types

Vehicle_Charges

type Vehicle_Charges is new Real range 0.0 .. 1.0;

Energy_Globe

type Energy_Globe is record
      Position : Positions;
      Velocity : Velocities; -- in delta-position per second
   end record;

References:

swarm_structures_base.ads:31:9 (declaration)
swarm_structures_base.ads:36:55 (reference)

Energy_Globes

type Energy_Globes is array (Positive range <>) of Energy_Globe;

Energy_Globe_Protected

type Energy_Globe_Protected is record
      Position : Protected_Point_3D.Monitor_Ptr;
      Velocity : Protected_Vector_3D.Monitor_Ptr;
   end record;

References:

swarm_structures_base.ads:41:9 (declaration)
swarm_structures_base.ads:46:65 (reference)

Energy_Globes_Protected

type Energy_Globes_Protected is array (Positive range <>) of Energy_Globe_Protected;

Constants & Global variables

Idle_Throttle (Throttle_T)

Idle_Throttle : constant Throttle_T := 0.0;

Full_Throttle (Throttle_T)

Full_Throttle : constant Throttle_T := 1.0;

References:

swarm_structures_base.ads:23:4 (declaration)

Empty_Charge (Vehicle_Charges)

Empty_Charge : constant Vehicle_Charges := 0.0;

References:

swarm_structures_base.ads:27:4 (declaration)
swarm_control.adb:479:29 (reference)
swarm_control.adb:590:71 (reference)

Half_Charge (Vehicle_Charges)

Half_Charge  : constant Vehicle_Charges := 0.5;

References:

swarm_structures_base.ads:28:4 (declaration)

Full_Charge (Vehicle_Charges)

Full_Charge  : constant Vehicle_Charges := 1.0;