Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
40
examples/edge-net/sim/dist/phases.d.ts
vendored
Normal file
40
examples/edge-net/sim/dist/phases.d.ts
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* Phase Transition Logic
|
||||
* Manages lifecycle phases and transition conditions
|
||||
*/
|
||||
import { Network } from './network.js';
|
||||
import { MetricsCollector } from './metrics.js';
|
||||
export interface PhaseTransitionCondition {
|
||||
minNodes: number;
|
||||
maxNodes: number;
|
||||
requiredDuration?: number;
|
||||
customCheck?: (network: Network) => boolean;
|
||||
}
|
||||
export declare class PhaseManager {
|
||||
private network;
|
||||
private metrics;
|
||||
private conditions;
|
||||
private lastPhase;
|
||||
constructor(network: Network, metrics: MetricsCollector);
|
||||
/**
|
||||
* Check if network should transition to next phase
|
||||
*/
|
||||
checkTransition(): boolean;
|
||||
/**
|
||||
* Handle phase transition
|
||||
*/
|
||||
private onTransition;
|
||||
/**
|
||||
* Log phase-specific information
|
||||
*/
|
||||
private logPhaseInfo;
|
||||
/**
|
||||
* Get phase progress (0-1)
|
||||
*/
|
||||
getPhaseProgress(): number;
|
||||
/**
|
||||
* Get estimated ticks to next phase
|
||||
*/
|
||||
getTicksToNextPhase(): number;
|
||||
}
|
||||
//# sourceMappingURL=phases.d.ts.map
|
||||
Reference in New Issue
Block a user