NAME: Protect

SYNOPSIS: Protect [options] Group Net

DESCRIPTION

This command is used to set the protect-attribute of groups. It controls which connctions from and to groups are allowed (see the section on groups in this manual). Protect has no effect if no options are specified. This is not a recursive command, so even if 'Group' has sub-groups, only the attribute of group itself is altered. However, the attributes are inherited as illustrated by the following examaple:

  • AddGroup SuperGroup my_net.rtdnn
  • AddGroup SubGroup my_net.rtdnn
  • AddUnit -u 5 SubGroup my_net.rtdnn
  • Move SubGroup network SuperGroup my_net.rtdnn
  • Protect -P SuperGroup my_net.rtdnn

    Now "SuperGroup" is protected against all conncetions to or from it, but "SubGroup" is not protected at all. Still, the following command does not create any new connections:

  • Connect SomeGroup SuperGroup my_net.rtdnn

    because the supergroup blocks the Conncet command. On the other hand, the command:

  • Connect SomeGroup SubGroup my_net.rtdnn

    creates new connections because the attribute is not copied to the subgroup.

    OPTIONS

    -P Change 'Group' to a "protected" group. This means that no furter connections are allwed to or from this group.
    -R Change 'Group' to a "reception" group. This means that only connections to the group are allowed.
    -S Change 'Group' to a "signal" group. This means that only connections from the group are allowed.
    -0 Change 'Group' to a "public" group. This turns off all protection and is the default.

    SEE ALSO

    AddGroup