OxL Reference

method net.partition

Cuts all links between the two groups in both directions, for for (0 = until heal()).

Example:

oxl✓ checked in CI
use std.test { net }

test sim "cut and heal" seeds 1..=2 {
  net.partition(["api"], ["db"], for: 2s)
  assert net.isBlocked("db", "api")
}
pub(api) static fn partition(a: List<str>, b: List<str>, r#for: Dur = 0ms)

Since. 1.0.0-beta

Parameters

NameType
aList<str>
bList<str>
r#for: Dur = 0ms

Effects

none declared (pure unless the body says otherwise)

Defined in: std/test/test.oxl:150

See also