generated from maximegris/angular-electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix interfaces, add process response from server in manager breakpoin…
…ts, memory, registers and statistics. fix PIXI THUMDER cycle clock arrows and PIXI Table. fix white-space pre in table. remove columns in file-manager. Layout in table memory, registers, and code. add Types for server sockets.
- Loading branch information
Showing
49 changed files
with
1,594 additions
and
1,245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
@startuml | ||
'https://plantuml.com/class-diagram | ||
class MachineService { | ||
+floatingPointStageConfiguration: TypeFloatingPointStageConfiguration | ||
+pipeline: PixiTHUMDER_Pipeline | ||
+cycleClockDiagram: PixiTHUMDER_CycleClockDiagram | ||
+dataStatistics: ManagerStatistics | ||
+registers: ManagerRegisters | ||
+memory: ManagerMemory | ||
+memorySize: any | ||
+breakpointManager: ManagerBreakpoints | ||
+code: Map<string, TypeCode> | ||
-simulation: TypeSimulationInitResponse | ||
-statusMachineInStep: TypeSimulationStep | ||
+isBreakpoint$: Subject<number> | ||
+codeSimulation$: Subject<TypeCode[]> | ||
+stepSimulation$: Subject<TypeSimulationStep> | ||
+dataStatistics$: Subject<TypeDataStatistics> | ||
+logger: string | ||
-privateStep: number | ||
-privateLine: number | ||
-timer: Observable<number> | ||
-timerObserver: PartialObserver<number> | ||
+reset$: Subject<void> | ||
+logger$: Subject<string> | ||
+step$: Subject<number> | ||
+line$: Subject<number> | ||
+isRunning$: Subject<boolean> | ||
+isComplete$: Subject<boolean> | ||
+isRunning: boolean | ||
+isComplete: boolean | ||
+isBreakpoint: boolean | ||
-store: StorageService | ||
-socketProviderConnect: SocketProviderConnectService | ||
-translate: TranslateService | ||
-toast: ToastrService | ||
+resetMachineStatus(): Promise<boolean> | ||
+getResetObservable(): Observable<void> | ||
+getStepObservable(): Observable<number> | ||
+getLineObservable(): Observable<number> | ||
+getIsRunningObservable(): Observable<boolean> | ||
+getStepSimulationObservable(): Observable<TypeSimulationStep> | ||
+getCodeSimulationObservable(): Observable<TypeCode[]> | ||
+getDebuggerObservable(): Observable<number> | ||
+getDataStatisticsObservable(): Observable<TypeDataStatistics> | ||
+getLoggerObservable(): Observable<string> | ||
+getStatusWebsocketObservable(): Observable<"Connect" | "Disconnect"> | ||
+getStatusWebsocket(): "Connect" | "Disconnect" | ||
+getListStatusPipeline(stepSimulation: TypeSimulationStep): TypeStatusPipeline[] | ||
+play(): Promise<void> | ||
+reset(): Promise<void> | ||
+nextStep(): Promise<void> | ||
+pause(): Promise<void> | ||
+resume(): Promise<void> | ||
+end(): Promise<void> | ||
-SimulationInit(): Promise<boolean> | ||
-SimulationNextStep(): Promise<void> | ||
-CheckConditions(): Promise<boolean> | ||
-Clock(): Promise<void> | ||
+log(msg: any): void | ||
+getCode(address: string): TypeCode | ||
+getAllStatusMachine(): TypeStatusMachine | ||
-toastMessage(key_title?: string, key_message?: string): Promise<void> | ||
} | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
@startuml | ||
'https://plantuml.com/class-diagram | ||
left to right direction | ||
|
||
class ManagerMemory implements InterfaceMemory { | ||
-_memorySizeBytes: number | ||
-_memoryInt8Array: Uint8Array | ||
+memorySizeBytes: number | ||
+memorySizeBytes: number | ||
+processResponse(response: TypeMemoryToUpdate[]): void | ||
+getMemoryWordByIndex(index: number): Int32 | ||
+getMemoryWordByAddress(address: string): Int32 | ||
+getMemoryWordBinaryByIndex(index: number): string | ||
+setMemoryWordByIndex(index: number, data: Int32): void | ||
+setMemoryWordByAddress(address: string, data: Int32): void | ||
+setMemoryWordBinaryByAddress(address: string, binary32: string): void | ||
+setMemoryWordBinaryByIndex(index: number, binary32: string): void | ||
+getMemoryByteBinaryByIndex(index: number): string | ||
+setMemoryByteBinaryByIndex(index: number, binary: string): void | ||
+setMemoryByteBinaryByAddress(address: string, binary08: string): void | ||
+getMemoryHalfWordBinaryByIndex(index: number): string | ||
+setMemoryHalfWordBinaryByIndex(index: number, binary16: string): void | ||
+setMemoryHalfWordBinaryByAddress(address: string, binary16: string): void | ||
+setMemoryFloatBinaryByAddress(address: string, binary32: string): void | ||
+setMemoryDoubleBinaryByAddress(address: string, binary64: string): void | ||
-setMemory_stringBinary_ByIndex(index: number, binary_08_16_32_64: string): void | ||
+getAllMemoryWord(): Int32[] | ||
+getAllIndexByWord(): number[] | ||
+reset(): void | ||
+setSize(memorySize: number): void | ||
+getAllMemory(): TypeMemory[] | ||
} | ||
class ManagerRegisters implements InterfaceRegisters { | ||
+PC: Int32 | ||
+IMAR: Int32 | ||
+IR: Int32 | ||
+A: Int32 | ||
+AHI: Int32 | ||
+B: Int32 | ||
+BHI: Int32 | ||
+BTA: Int32 | ||
+ALU: Int32 | ||
+ALUHI: Int32 | ||
+FPSR: Int32 | ||
+DMAR: Int32 | ||
+SDR: Int32 | ||
+SDRHI: Int32 | ||
+LDR: Int32 | ||
+LDRHI: Int32 | ||
+R: Int32[] | ||
+F: Float32[] | ||
+processResponse(response: TypeRegisterToUpdate[]): void | ||
+reset(): void | ||
} | ||
class ManagerBreakpoints implements InterfaceBreakpoints { | ||
-breakpoints: TypeBreakpoints | ||
+toggleBreakpoint(lineNumber: number): void | ||
+getBreakpoint(lineNumber: number): boolean | ||
+updateManager(breakpoints: TypeBreakpoints): void | ||
+getAllBreakpoints(): TypeBreakpoints | ||
+getAllLinesWithBreakpoints(): number[] | ||
+isBreakpoint(line: number): boolean | ||
+reset(): void | ||
} | ||
class ManagerStatistics implements InterfaceDataStatistics { | ||
-_data: TypeDataStatistics | ||
+processResponse(response: Partial<TypeDataStatistics>): void | ||
+getData(): TypeDataStatistics | ||
+reset(): void | ||
} | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.