-
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.
chore(docs): Added docstrings to all methods, classes and interfaces
- Loading branch information
Showing
24 changed files
with
915 additions
and
103 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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
|
||
/** | ||
* Object representing an output agent | ||
*/ | ||
export interface Agent { | ||
/** identifier of the agent */ | ||
identifier: string; | ||
/** map of agent variables */ | ||
variables: Object; | ||
} |
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 |
---|---|---|
@@ -1,7 +1,14 @@ | ||
|
||
/** | ||
* Object representing the interpeter's configuration | ||
*/ | ||
export interface InterpreterConfiguration { | ||
/** number of the simulation steps */ | ||
steps: number; | ||
/** delay between each step in milliseconds */ | ||
delay: number; | ||
/** width of the visualisation window */ | ||
width: number; | ||
/** height of the visualisation window */ | ||
height: number; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
|
||
/** | ||
* Object representing the exit status of the interpreter's output | ||
*/ | ||
export interface ExitStatus { | ||
/** exit code number */ | ||
code: number; | ||
/** exit status message */ | ||
message?: string; | ||
} |
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 |
---|---|---|
@@ -1,12 +1,22 @@ | ||
import { Agent } from "./agent.ts"; | ||
import { ExitStatus } from "./exit-status.ts"; | ||
|
||
/** | ||
* Object representing the output of the simulation | ||
*/ | ||
export interface Output { | ||
/** value of the current step */ | ||
step: number; | ||
/** list of current agents */ | ||
agents: Agent[]; | ||
} | ||
|
||
/** | ||
* Object representing the output of the interpreter | ||
*/ | ||
export interface InterpreterOutput { | ||
/** exit status of the interpreter */ | ||
status: ExitStatus; | ||
/** output values of the simulation */ | ||
output?: Output; | ||
} |
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.