BasicSysAbstraction implementation with configurable service modes.
Wraps a base system abstraction and allows overriding time, ID, and random
number generation modes. This is the primary implementation returned by
BasicSysAbstractionFactory and provides the unified interface for all
platform-independent system services.
Delegates runtime-specific operations (Stdout, Stderr, Env, Args) to the
underlying runtime service while providing configurable implementations for
testable services (Time, ID, Random).
Example
// Created via factory constsys = BasicSysAbstractionFactory({ TimeMode:TimeMode.STEP, IdMode:IDMode.UUID, RandomMode:RandomMode.RANDOM });
// Use time service consttime = sys.Time(); constnow = time.Now(); awaittime.Sleep(1000);
// Use ID service constid = sys.NextId();
// Use random service constrandom = sys.Random0ToValue(100);
BasicSysAbstraction implementation with configurable service modes.
Wraps a base system abstraction and allows overriding time, ID, and random number generation modes. This is the primary implementation returned by BasicSysAbstractionFactory and provides the unified interface for all platform-independent system services.
Delegates runtime-specific operations (Stdout, Stderr, Env, Args) to the underlying runtime service while providing configurable implementations for testable services (Time, ID, Random).
Example