@flexabrain/mcp-server
Version:
Advanced electrical schematic analysis MCP server with rail engineering expertise
235 lines • 6.93 kB
TypeScript
/**
* FlexaBrain MCP Server - Electrical Component Type Definitions
*
* This file contains comprehensive type definitions for electrical components,
* leveraging rail electrical engineering expertise for accurate classification
* and analysis.
*/
export declare enum ComponentType {
CONVERTER = "converter",
TRANSFORMER = "transformer",
INVERTER = "inverter",
RECTIFIER = "rectifier",
CIRCUIT_BREAKER = "circuit_breaker",
FUSE = "fuse",
SURGE_PROTECTOR = "surge_protector",
RELAY = "relay",
CONTACTOR = "contactor",
SWITCH = "switch",
PUSHBUTTON = "pushbutton",
INDICATOR = "indicator",
JUNCTION_BOX = "junction_box",
TERMINAL_BLOCK = "terminal_block",
CONNECTOR = "connector",
CABLE = "cable",
AMMETER = "ammeter",
VOLTMETER = "voltmeter",
FREQUENCY_METER = "frequency_meter",
POWER_METER = "power_meter",
SIGNAL_MODULE = "signal_module",
SIGNAL_REFERENCE = "signal_reference",
COMMUNICATION_MODULE = "communication_module",
UNKNOWN = "unknown",
OTHER = "other"
}
export declare enum ComponentCategory {
TRACTION_POWER = "traction_power",
AUXILIARY_POWER = "auxiliary_power",
SIGNALING = "signaling",
CONTROL = "control",
PROTECTION = "protection",
MEASUREMENT = "measurement",
COMMUNICATION = "communication",
UNCLASSIFIED = "unclassified"
}
export declare enum SchematicType {
TRACTION_POWER = "traction_power",
SIGNALING = "signaling",
CONTROL = "control",
AUXILIARY = "auxiliary",
POWER_DISTRIBUTION = "power_distribution",
GENERAL = "general"
}
export declare enum SafetyLevel {
CRITICAL = "critical",
HIGH = "high",
MEDIUM = "medium",
LOW = "low",
SAFE = "safe"
}
export interface BoundingBox {
x: number;
y: number;
width: number;
height: number;
}
export interface VoltageRange {
min: number;
max: number;
nominal?: number;
unit: 'V_DC' | 'V_AC' | 'kV_DC' | 'kV_AC';
}
export interface CurrentRange {
min: number;
max: number;
nominal?: number;
unit: 'A' | 'mA' | 'kA';
}
export interface PowerRange {
min: number;
max: number;
nominal?: number;
unit: 'W' | 'kW' | 'MW' | 'VA' | 'kVA' | 'MVA';
}
export interface FrequencyRange {
nominal: number;
tolerance: number;
unit: 'Hz' | 'kHz';
}
export interface SafetyRequirement {
type: 'ARC_FLASH' | 'ELECTRICAL_SHOCK' | 'THERMAL' | 'MECHANICAL';
category?: number;
voltage_class?: 'LV' | 'MV' | 'HV' | 'EHV';
ppe_required?: boolean;
max_temperature?: number;
operation_force?: 'low' | 'medium' | 'high';
special_precautions?: string[];
}
export interface MaintenanceInterval {
frequency: number;
unit: 'days' | 'weeks' | 'months' | 'years' | 'cycles' | 'hours';
}
export interface MaintenanceSchedule {
inspection: MaintenanceInterval;
testing?: MaintenanceInterval;
calibration?: MaintenanceInterval;
overhaul?: MaintenanceInterval;
replacement?: MaintenanceInterval;
}
export interface ComponentSpecification {
voltage_rating?: VoltageRange;
current_rating?: CurrentRange;
power_rating?: PowerRange;
frequency?: FrequencyRange;
operating_temperature?: {
min: number;
max: number;
unit: 'C' | 'F';
};
standards_compliance: string[];
safety_requirements: SafetyRequirement[];
maintenance_intervals: MaintenanceSchedule;
typical_applications?: string[];
}
export interface ComponentClassification {
type: ComponentType;
category: ComponentCategory;
confidence: number;
specifications?: ComponentSpecification;
safety_level: SafetyLevel;
}
export interface ElectricalComponent {
id: string;
type: ComponentType;
category: ComponentCategory;
location: BoundingBox;
confidence: number;
operating_voltage?: number;
operating_current?: number;
operating_power?: number;
classification: ComponentClassification;
specifications?: ComponentSpecification;
connection_points?: ConnectionPoint[];
terminal_count?: number;
manufacturer?: string;
model?: string;
part_number?: string;
installation_date?: Date;
last_maintenance?: Date;
safety_level: SafetyLevel;
compliance_status?: 'COMPLIANT' | 'NON_COMPLIANT' | 'REQUIRES_REVIEW' | 'UNKNOWN';
rail_system_type?: 'METRO' | 'LIGHT_RAIL' | 'HEAVY_RAIL' | 'HIGH_SPEED' | 'FREIGHT';
traction_system?: 'DC' | 'AC' | 'DUAL' | 'THIRD_RAIL' | 'OVERHEAD';
signal_system?: 'ATC' | 'ATS' | 'CBTC' | 'PTC' | 'ERTMS' | 'CONVENTIONAL';
}
export interface ConnectionPoint {
id: string;
component_id: string;
terminal_number?: string;
terminal_type: 'INPUT' | 'OUTPUT' | 'BIDIRECTIONAL' | 'GROUND' | 'NEUTRAL';
location: BoundingBox;
voltage_level?: number;
current_rating?: number;
connection_status: 'CONNECTED' | 'DISCONNECTED' | 'UNKNOWN';
}
export interface Connection {
id: string;
from_component: string;
to_component: string;
from_terminal?: string;
to_terminal?: string;
connection_type: 'POWER' | 'CONTROL' | 'SIGNAL' | 'DATA' | 'GROUND';
voltage_level?: number;
current_rating?: number;
wire_gauge?: string;
cable_type?: string;
length?: number;
path_points?: {
x: number;
y: number;
}[];
}
export interface ValidationIssue {
severity: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW' | 'INFO';
type: string;
component_id?: string;
connection_id?: string;
message: string;
recommendation: string;
standard_reference?: string;
estimated_cost?: 'LOW' | 'MEDIUM' | 'HIGH';
timeline?: string;
}
export interface ValidationResult {
is_valid: boolean;
overall_status: 'CRITICAL' | 'ACCEPTABLE' | 'GOOD' | 'EXCELLENT';
violations: ValidationIssue[];
safety_level: SafetyLevel;
compliance_level: number;
}
export interface TopologyValidation {
overall_status: 'CRITICAL' | 'ACCEPTABLE' | 'GOOD' | 'EXCELLENT';
issues: ValidationIssue[];
compliance_level: number;
safety_assessment: SafetyLevel;
recommendations: string[];
}
export interface CircuitPath {
id: string;
start_component: string;
end_component: string;
intermediate_components: string[];
path_type: 'POWER' | 'CONTROL' | 'SIGNAL' | 'GROUND';
voltage_level?: number;
current_rating?: number;
total_length?: number;
resistance?: number;
impedance?: number;
}
export interface PowerFlow {
source: string;
loads: string[];
power_rating: number;
efficiency?: number;
power_factor?: number;
losses?: number;
}
export interface GroundingSystem {
is_adequate: boolean;
has_ground_fault_protection: boolean;
ground_electrodes: string[];
bonding_connections: string[];
resistance_reading?: number;
last_tested?: Date;
}
//# sourceMappingURL=electrical.d.ts.map