Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractCopyInstruction - Class in dev.zemco.codegame.execution.instructions
-
Abstract base for instruction copying values from one
memory cellto some other. - AbstractCopyInstruction() - Constructor for class dev.zemco.codegame.execution.instructions.AbstractCopyInstruction
- AbstractNamedParametrizedInstructionParser - Class in dev.zemco.codegame.compilation.parsing
-
Abstract base for
instruction parsersparsing a single namedinstructionencoded with parameters separated by whitespace. - AbstractNamedParametrizedInstructionParser(String) - Constructor for class dev.zemco.codegame.compilation.parsing.AbstractNamedParametrizedInstructionParser
-
Initializes a subclass instance of
AbstractNamedParametrizedInstructionParserthat parses a parametrizedinstructionwith the given name. - accept(int) - Method in interface dev.zemco.codegame.execution.io.IOutputSink
-
Attempts to write
valueto output. - accept(int) - Method in class dev.zemco.codegame.execution.io.VerifyingInputSourceToOutputSinkAdapter
-
Attempts to match output
valueto next value from the adaptedinput source. - addInstruction(IInstruction, int) - Method in interface dev.zemco.codegame.programs.IProgramBuilder
-
Appends
instructionto all instructions of theprogram. - addInstruction(IInstruction, int) - Method in class dev.zemco.codegame.programs.ProgramBuilder
- AdditionInstruction - Class in dev.zemco.codegame.execution.instructions
-
Instruction that adds constant to value held in working
memory cell. - AdditionInstruction(int) - Constructor for class dev.zemco.codegame.execution.instructions.AdditionInstruction
-
Creates an instance of
AdditionInstructionwith the specified addition constant. - addJumpLabelMapping(String, int) - Method in interface dev.zemco.codegame.programs.IProgramBuilder
-
Adds unique jump label mapping to the
program. - addJumpLabelMapping(String, int) - Method in class dev.zemco.codegame.programs.ProgramBuilder
B
- BindingUtils - Class in dev.zemco.codegame.util
-
Collection of utility functions for simplifying manipulation of JavaFX bindings.
- bootstrap(Class<?>, Stage) - Static method in class dev.zemco.codegame.Bootstrap
-
Bootstraps all needed application components with the provided resource class and primary stage.
- Bootstrap - Class in dev.zemco.codegame
-
Bootstraps all needed application components.
- build() - Method in interface dev.zemco.codegame.programs.IProgramBuilder
-
Builds the
programbased on the data specified during the lifetime of the builder. - build() - Method in class dev.zemco.codegame.programs.ProgramBuilder
C
- canCompileProperty() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Property indicating if compilation of player's solution is available.
- canCompileProperty() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- canEvaluateProperty() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Property indicating if test evaluation of player's solution is available.
- canEvaluateProperty() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- canStepProperty() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Property indicating if test evaluation of player's solution can be stepped.
- canStepProperty() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- canSubmitProperty() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Property indicating if of player's solution can be submitted.
- canSubmitProperty() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- checkArgumentNotEmpty(String, String) - Static method in class dev.zemco.codegame.util.Preconditions
- checkArgumentNotEmpty(T, String) - Static method in class dev.zemco.codegame.util.Preconditions
- checkArgumentNotNull(T, String) - Static method in class dev.zemco.codegame.util.Preconditions
- checkArgumentPositiveInteger(int, String) - Static method in class dev.zemco.codegame.util.Preconditions
- checkParameterFixedCount(String[], int) - Method in class dev.zemco.codegame.compilation.parsing.AbstractNamedParametrizedInstructionParser
-
Checks if the given parameters have a required fixed count.
- CodeGameApplication - Class in dev.zemco.codegame
-
Main class of the CodeGame application handling the application launch.
- CodeGameApplication() - Constructor for class dev.zemco.codegame.CodeGameApplication
- CodeHighlightStyleComputer - Class in dev.zemco.codegame.presentation.highlighting
-
Implementation of a compiler, which computes CSS highlight styles for individual parts of a source code using the CodeGame syntax.
- CodeHighlightStyleComputer(Set<String>) - Constructor for class dev.zemco.codegame.presentation.highlighting.CodeHighlightStyleComputer
-
Creates an instance of
CodeHighlightStyleComputerwith specific instruction names to highlight. - CodeProgramCompiler - Class in dev.zemco.codegame.compilation
-
Implementation of a compiler, which compiles source code into an executable
programusing the CodeGame syntax. - CodeProgramCompiler(IInstructionParser, IProgramBuilderFactory) - Constructor for class dev.zemco.codegame.compilation.CodeProgramCompiler
-
Creates an instance of
CodeProgramCompiler. - compileProgram(String) - Method in class dev.zemco.codegame.compilation.CodeProgramCompiler
- compileProgram(String) - Method in interface dev.zemco.codegame.compilation.IProgramCompiler
-
Compiles given source code into an executable
program. - compileSolution(String) - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Attempts to compile the player's solution.
- compileSolution(String) - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- computeHighlightStyles(String) - Method in class dev.zemco.codegame.presentation.highlighting.CodeHighlightStyleComputer
- computeHighlightStyles(String) - Method in interface dev.zemco.codegame.presentation.highlighting.IHighlightStyleComputer
-
Computes CSS highlight styles for a given part of the source code.
- ConstantSizeMemory - Class in dev.zemco.codegame.execution.memory
-
Memory holding constant number of
memory cellsspecified during its creation. - ConstantSizeMemory(int, IMemoryCellFactory) - Constructor for class dev.zemco.codegame.execution.memory.ConstantSizeMemory
-
Creates an instance of
ConstantSizeMemorythat holds a specified number ofmemory cellscreated using the providedmemoryCellFactory. - CopyFromInstruction - Class in dev.zemco.codegame.execution.instructions
-
Instruction that copies value from target
memory cellto workingmemory cell. - CopyFromInstruction(int) - Constructor for class dev.zemco.codegame.execution.instructions.CopyFromInstruction
-
Creates an instance of
CopyFromInstructionthat copies values frommemory cellat a given address. - CopyToInstruction - Class in dev.zemco.codegame.execution.instructions
-
Instruction that copies value from working
memory cellto targetmemory cell. - CopyToInstruction(int) - Constructor for class dev.zemco.codegame.execution.instructions.CopyToInstruction
-
Creates an instance of
CopyToInstructionthat copies values intomemory cellat a given address. - createAlert(Alert.AlertType) - Method in interface dev.zemco.codegame.presentation.dialog.IAlertFactory
-
Creates a JavaFX alert of a provided type.
- createController(Class<?>) - Method in interface dev.zemco.codegame.presentation.IControllerFactory
-
Creates a controller for a JavaFX view based on the provided controller class.
- createFxmlLoader() - Method in interface dev.zemco.codegame.presentation.IFxmlLoaderFactory
-
Creates a JavaFX FXML loader ready for use.
- createInputSourceFromIterable(Iterable<Integer>) - Method in interface dev.zemco.codegame.execution.io.IInputSourceFactory
-
Creates an
input sourcethat provides its values from aniterable. - createInstruction(int) - Method in interface dev.zemco.codegame.compilation.parsing.FactorySingleIntegerParameterInstructionParser.IIntegerInstructionFactory
-
Creates an
instructionready for use. - createInstruction(String) - Method in interface dev.zemco.codegame.compilation.parsing.FactorySingleParameterInstructionParser.IStringInstructionFactory
-
Creates an
instructionready for use. - createMemoryCell() - Method in interface dev.zemco.codegame.execution.memory.IMemoryCellFactory
-
Creates a
memory cellready for a use. - createMemoryWithSize(int) - Method in interface dev.zemco.codegame.execution.memory.IMemoryFactory
-
Creates a
memorywith the minimum specifiedsize. - createProgramBuilder() - Method in interface dev.zemco.codegame.programs.IProgramBuilderFactory
-
Creates a
program builderready for use. - createSolutionErrorModel(InvalidSyntaxException) - Method in interface dev.zemco.codegame.presentation.solution.errors.ISolutionErrorModelFactory
-
Creates a
solution error modelfor an exception caused by usage of an invalid syntax in the solution. - createSolutionErrorModel(InvalidSyntaxException) - Method in class dev.zemco.codegame.presentation.solution.errors.SimpleSolutionErrorModelFactory
- createSolutionErrorModel(StepEvaluationException) - Method in interface dev.zemco.codegame.presentation.solution.errors.ISolutionErrorModelFactory
-
Creates a
solution error modelfor an exception caused by error during evaluation of the solution. - createSolutionErrorModel(StepEvaluationException) - Method in class dev.zemco.codegame.presentation.solution.errors.SimpleSolutionErrorModelFactory
- createVerifyingOutputSinkFromIterable(Iterable<Integer>) - Method in interface dev.zemco.codegame.execution.io.IOutputSinkFactory
-
Creates an
output sinkthat verifies output values by matching them to values from aniterable.
D
- DelegatingInstructionParser - Class in dev.zemco.codegame.compilation.parsing
-
Implementation of an
instruction parserthat delegates parsing to other provided parsers. - DelegatingInstructionParser(List<IInstructionParser>) - Constructor for class dev.zemco.codegame.compilation.parsing.DelegatingInstructionParser
-
Creates an instance of
DelegatingInstructionParserthat delegatesinstructionparsing to given parsers. - dev.zemco.codegame - package dev.zemco.codegame
-
Main package containing components related to app launch.
- dev.zemco.codegame.compilation - package dev.zemco.codegame.compilation
-
Components related to compilation of source code into executable programs.
- dev.zemco.codegame.compilation.parsing - package dev.zemco.codegame.compilation.parsing
-
Components related to parsing of raw instructions.
- dev.zemco.codegame.evaluation - package dev.zemco.codegame.evaluation
-
Provides evaluation capabilities of executions to the application.
- dev.zemco.codegame.execution - package dev.zemco.codegame.execution
-
Provides execution capabilities to the application.
- dev.zemco.codegame.execution.engine - package dev.zemco.codegame.execution.engine
-
Provides instruction execution capabilities to execution.
- dev.zemco.codegame.execution.instructions - package dev.zemco.codegame.execution.instructions
-
Provides instructions for executions.
- dev.zemco.codegame.execution.io - package dev.zemco.codegame.execution.io
-
Provides input and output capabilities to execution.
- dev.zemco.codegame.execution.memory - package dev.zemco.codegame.execution.memory
-
Provides memory capabilities to execution.
- dev.zemco.codegame.presentation - package dev.zemco.codegame.presentation
-
Presents the application state to the user.
- dev.zemco.codegame.presentation.dialog - package dev.zemco.codegame.presentation.dialog
-
Presents modal dialogs to the user.
- dev.zemco.codegame.presentation.execution - package dev.zemco.codegame.presentation.execution
-
Presents state of the execution to the user.
- dev.zemco.codegame.presentation.highlighting - package dev.zemco.codegame.presentation.highlighting
-
Provides syntax highlighting for source code.
- dev.zemco.codegame.presentation.problems - package dev.zemco.codegame.presentation.problems
-
MVC components for presenting the problem selection to the user.
- dev.zemco.codegame.presentation.solution - package dev.zemco.codegame.presentation.solution
-
MVC components for presenting the solution to the user.
- dev.zemco.codegame.presentation.solution.errors - package dev.zemco.codegame.presentation.solution.errors
-
Presents formatted errors containing information about user's solution failures.
- dev.zemco.codegame.problems - package dev.zemco.codegame.problems
-
Components related to problems solvable by the player.
- dev.zemco.codegame.programs - package dev.zemco.codegame.programs
-
Components related to programs executable by the application.
- dev.zemco.codegame.resources - package dev.zemco.codegame.resources
-
Classes to support loading of required resources by the application.
- dev.zemco.codegame.util - package dev.zemco.codegame.util
-
Collection of utilities for improving readability across project source code.
E
- evaluateSolutionForProblemCase(IExecutionContext, ProblemCase) - Method in interface dev.zemco.codegame.evaluation.IEvaluationStrategy
-
Evaluates if the
execution contextis in a state that is considered a valid solution of a givenproblem case. - evaluateSolutionForProblemCase(IExecutionContext, ProblemCase) - Method in class dev.zemco.codegame.evaluation.OutputSinkSatisfiedEvaluationStrategy
-
Evaluates the solution by checking if the
output sinkof the execution is satisfied. - evaluateSolutionOnAllProblemCases(Program, Problem) - Method in class dev.zemco.codegame.evaluation.EvaluationService
- evaluateSolutionOnAllProblemCases(Program, Problem) - Method in interface dev.zemco.codegame.evaluation.IEvaluationService
- evaluationRunningProperty() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Property indicating if test evaluation of player's solution is running.
- evaluationRunningProperty() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- EvaluationService - Class in dev.zemco.codegame.evaluation
-
Implementation of business logic related to evaluation of solutions of
problems. - EvaluationService(IExecutionService, IEvaluationStrategy) - Constructor for class dev.zemco.codegame.evaluation.EvaluationService
-
Creates an instance of
EvaluationService. - execute(IExecutionContext) - Method in class dev.zemco.codegame.execution.instructions.AbstractCopyInstruction
-
Copies the value from the source
memory cellto the destinationmemory cell. - execute(IExecutionContext) - Method in class dev.zemco.codegame.execution.instructions.AdditionInstruction
-
Adds constant to value held in working
memory cell. - execute(IExecutionContext) - Method in interface dev.zemco.codegame.execution.instructions.IInstruction
-
Executes instruction on a given
context. - execute(IExecutionContext) - Method in class dev.zemco.codegame.execution.instructions.InputInstruction
-
Takes next value from
input sourceand copies it to the workingmemory cell. - execute(IExecutionContext) - Method in class dev.zemco.codegame.execution.instructions.JumpInstruction
-
Requests the
engineto perform a jump to the target jump label. - execute(IExecutionContext) - Method in class dev.zemco.codegame.execution.instructions.OutputInstruction
-
Emits current value in working
memory celltooutput sink. - executionErrorProperty() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Property holding the last
solution error modelindicating error during execution of the test evaluation of player's solution. - executionErrorProperty() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
F
- FactorySingleAddressParameterInstructionParser - Class in dev.zemco.codegame.compilation.parsing
-
Parses a named
instructionwith a single address parameter by requesting it from a backingfactory. - FactorySingleAddressParameterInstructionParser(String, FactorySingleIntegerParameterInstructionParser.IIntegerInstructionFactory) - Constructor for class dev.zemco.codegame.compilation.parsing.FactorySingleAddressParameterInstructionParser
-
Creates an instance of
FactorySingleAddressParameterInstructionParserthat parsesinstructionswith the given name by requesting them from the given backingfactory. - FactorySingleIntegerParameterInstructionParser - Class in dev.zemco.codegame.compilation.parsing
-
Parses a named
instructionwith a single integer parameter by requesting it from a backingfactory. - FactorySingleIntegerParameterInstructionParser(String, FactorySingleIntegerParameterInstructionParser.IIntegerInstructionFactory) - Constructor for class dev.zemco.codegame.compilation.parsing.FactorySingleIntegerParameterInstructionParser
-
Creates an instance of
FactorySingleIntegerParameterInstructionParserthat parsesinstructionswith the given name by requesting them from the given backingfactory. - FactorySingleIntegerParameterInstructionParser.IIntegerInstructionFactory - Interface in dev.zemco.codegame.compilation.parsing
-
Produces
instructionsfrom a singleintegerparameter. - FactorySingleParameterInstructionParser - Class in dev.zemco.codegame.compilation.parsing
-
Parses a named
instructionwith a single parameter by requesting it from a backingfactory. - FactorySingleParameterInstructionParser(String, FactorySingleParameterInstructionParser.IStringInstructionFactory) - Constructor for class dev.zemco.codegame.compilation.parsing.FactorySingleParameterInstructionParser
-
Creates an instance of
FactorySingleParameterInstructionParserthat parsesinstructionswith the given name by requesting them from the given backingfactory. - FactorySingleParameterInstructionParser.IStringInstructionFactory - Interface in dev.zemco.codegame.compilation.parsing
-
Produces
instructionsfrom a singlestringparameter. - FxmlViewProvider - Class in dev.zemco.codegame.presentation
-
Provides JavaFX views by loading raw FXML views from the
IFxmlViewSourceProvider. - FxmlViewProvider(IFxmlViewSourceProvider, IControllerFactory, IViewStylesheetProvider, IFxmlLoaderFactory) - Constructor for class dev.zemco.codegame.presentation.FxmlViewProvider
-
Creates an instance of
FxmlViewProviderready for use.
G
- getAddress() - Method in interface dev.zemco.codegame.presentation.execution.IMemoryCellObserver
-
Returns the address of the target
memory cellwithin the executionmemory. - getAddress() - Method in class dev.zemco.codegame.presentation.execution.UpdatableMemoryCellObserverAdapter
- getAllProblems() - Method in interface dev.zemco.codegame.problems.IProblemRepository
-
Returns all known problems.
- getAllProblems() - Method in interface dev.zemco.codegame.problems.IProblemService
-
Returns all problems available to the application.
- getAllProblems() - Method in class dev.zemco.codegame.problems.ProblemService
- getAllProblems() - Method in class dev.zemco.codegame.problems.UrlObjectMapperProblemRepository
-
Retrieves and deserializes all problems from the
URLdatasource. - getCases() - Method in class dev.zemco.codegame.problems.Problem
-
Returns
problem casesused for validation of this problem's solution. - getCellByAddress(int) - Method in class dev.zemco.codegame.execution.memory.ConstantSizeMemory
- getCellByAddress(int) - Method in interface dev.zemco.codegame.execution.memory.IMemory
-
Retrieves a
cellat the specified address. - getConfiguredMemory(ProblemCaseMemorySettings) - Method in interface dev.zemco.codegame.execution.memory.IMemoryService
-
Provides a
memoryconfigured using the provided memory settings. - getConfiguredMemory(ProblemCaseMemorySettings) - Method in class dev.zemco.codegame.execution.memory.MemoryService
- getDescription() - Method in class dev.zemco.codegame.presentation.solution.errors.ImmutableSolutionErrorModel
- getDescription() - Method in interface dev.zemco.codegame.presentation.solution.errors.ISolutionErrorModel
-
Returns the description of the error.
- getDescription() - Method in class dev.zemco.codegame.problems.Problem
-
Returns description of this problem.
- getDestinationMemoryCell(IMemory) - Method in class dev.zemco.codegame.execution.instructions.AbstractCopyInstruction
-
Retrieves the destination
memory cellfor copying. - getDestinationMemoryCell(IMemory) - Method in class dev.zemco.codegame.execution.instructions.CopyFromInstruction
- getDestinationMemoryCell(IMemory) - Method in class dev.zemco.codegame.execution.instructions.CopyToInstruction
- getDifficulty() - Method in class dev.zemco.codegame.problems.Problem
-
Returns positive difficulty of this problem.
- getEvaluatorForProblemCaseSolution(Program, ProblemCase) - Method in class dev.zemco.codegame.evaluation.EvaluationService
- getEvaluatorForProblemCaseSolution(Program, ProblemCase) - Method in interface dev.zemco.codegame.evaluation.IEvaluationService
- getExecutionContext() - Method in interface dev.zemco.codegame.evaluation.ISolutionEvaluator
-
Returns the
execution contextthat is being evaluated by the evaluator. - getExecutionContext() - Method in class dev.zemco.codegame.evaluation.SolutionEvaluator
- getExecutionContext() - Method in class dev.zemco.codegame.evaluation.TimeoutSolutionEvaluatorDecorator
- getExecutionContext() - Method in class dev.zemco.codegame.execution.engine.ProgramExecutionEngine
-
Returns the
execution contextmanaged by this engine. - getExecutionContextForProblemCaseSolution(Program, ProblemCase) - Method in interface dev.zemco.codegame.execution.IExecutionService
- getExecutionContextForProblemCaseSolution(Program, ProblemCase) - Method in class dev.zemco.codegame.execution.ProgramExecutionService
- getExecutionEngine() - Method in interface dev.zemco.codegame.execution.IExecutionContext
-
Returns the execution engine of the execution.
- getExecutionEngine() - Method in class dev.zemco.codegame.execution.ImmutableExecutionContext
- getExpectedOutputs() - Method in class dev.zemco.codegame.problems.ProblemCase
-
Returns outputs that are expected from player's solution during validation.
- getFxmlViewSourceStreamById(String) - Method in interface dev.zemco.codegame.presentation.IFxmlViewSourceProvider
-
Provides an
input streamwith the raw FXML source of the requested view. - getFxmlViewSourceStreamById(String) - Method in class dev.zemco.codegame.presentation.ResourceFxmlViewSourceProvider
-
Provides an
input streamwith the raw FXML source of the requested view. - getId() - Method in class dev.zemco.codegame.problems.Problem
-
Returns unique identifier associated with this problem.
- getInitialValues() - Method in class dev.zemco.codegame.problems.ProblemCaseMemorySettings
-
Returns initial values of the memory used during the evaluation of player's solution.
- getInputs() - Method in class dev.zemco.codegame.problems.ProblemCase
-
Returns inputs that are available to player's solution during validation.
- getInputSource() - Method in interface dev.zemco.codegame.execution.IExecutionContext
-
Returns the input source of the execution.
- getInputSource() - Method in class dev.zemco.codegame.execution.ImmutableExecutionContext
- getInstruction() - Method in class dev.zemco.codegame.programs.InstructionDescriptor
-
Returns the
instructionthis descriptor provides the additional context for. - getInstructionDescriptors() - Method in class dev.zemco.codegame.programs.Program
-
Returns
instruction descriptorsof this program, ordered in a way they should be executed. - getJumpLabelToLinePositionMap() - Method in class dev.zemco.codegame.programs.Program
-
Returns jump label to line position mappings used for jumping to a specific position during execution.
- getLinePosition() - Method in exception dev.zemco.codegame.compilation.InvalidSyntaxException
-
Returns the zero-based line position where the syntax error is located.
- getLinePosition() - Method in exception dev.zemco.codegame.execution.engine.StepExecutionException
-
Returns the zero-based line position related to the executed instruction.
- getLinePosition() - Method in class dev.zemco.codegame.presentation.solution.errors.ImmutableSolutionErrorModel
- getLinePosition() - Method in interface dev.zemco.codegame.presentation.solution.errors.ISolutionErrorModel
-
Returns the zero-based line position within the solution code associated with the error.
- getLinePosition() - Method in class dev.zemco.codegame.programs.InstructionDescriptor
-
Returns the zero-based line position associated with the
instruction. - getMemory() - Method in interface dev.zemco.codegame.execution.IExecutionContext
-
Returns the memory of the execution.
- getMemory() - Method in class dev.zemco.codegame.execution.ImmutableExecutionContext
- getMemoryCellAtAddress(IMemory, int) - Method in class dev.zemco.codegame.execution.instructions.AbstractCopyInstruction
-
Retrieves a
memory cellat a given address. - getMemorySettings() - Method in class dev.zemco.codegame.problems.ProblemCase
-
Returns
memory settingswhich are used to configure memory during validation. - getName() - Method in class dev.zemco.codegame.problems.Problem
-
Returns name of this problem.
- getNextInstructionDescriptor() - Method in interface dev.zemco.codegame.execution.engine.IExecutionEngine
-
Returns a descriptor of the instruction that will be executed next by the engine.
- getNextInstructionDescriptor() - Method in class dev.zemco.codegame.execution.engine.ProgramExecutionEngine
-
Returns a descriptor of the instruction that will be executed next by the engine.
- getNextValue() - Method in interface dev.zemco.codegame.execution.io.IInputSource
-
Returns next value of the input source.
- getNextValue() - Method in class dev.zemco.codegame.execution.io.IterableInputSource
-
Returns next value from the underlying
iterator. - getOutputSink() - Method in interface dev.zemco.codegame.execution.IExecutionContext
-
Returns the output sink of the execution.
- getOutputSink() - Method in class dev.zemco.codegame.execution.ImmutableExecutionContext
- getPrimaryStage() - Method in class dev.zemco.codegame.presentation.ImmutableStageProvider
- getPrimaryStage() - Method in interface dev.zemco.codegame.presentation.IStageProvider
-
Provides the primary
stageof the application. - getSize() - Method in class dev.zemco.codegame.problems.ProblemCaseMemorySettings
-
Returns size of the memory used during the evaluation of player's solution.
- getSourceMemoryCell(IMemory) - Method in class dev.zemco.codegame.execution.instructions.AbstractCopyInstruction
-
Retrieves the source
memory cellfor copying. - getSourceMemoryCell(IMemory) - Method in class dev.zemco.codegame.execution.instructions.CopyFromInstruction
- getSourceMemoryCell(IMemory) - Method in class dev.zemco.codegame.execution.instructions.CopyToInstruction
- getStylesheetsByViewId(String) - Method in class dev.zemco.codegame.presentation.ImmutableViewStylesheetProvider
- getStylesheetsByViewId(String) - Method in interface dev.zemco.codegame.presentation.IViewStylesheetProvider
-
Provides the string URLs linking to the stylesheets assigned to the requested view.
- getValue() - Method in interface dev.zemco.codegame.execution.memory.IMemoryCell
-
Returns currently held integer value of this cell.
- getValue() - Method in class dev.zemco.codegame.execution.memory.SimpleMemoryCell
- getViewById(String) - Method in class dev.zemco.codegame.presentation.FxmlViewProvider
-
Provides the root node of the requested view ready to be presented.
- getViewById(String) - Method in interface dev.zemco.codegame.presentation.IViewProvider
-
Provides the root node of the requested view ready to be presented.
- getWorkingCell() - Method in class dev.zemco.codegame.execution.memory.ConstantSizeMemory
- getWorkingCell() - Method in interface dev.zemco.codegame.execution.memory.IMemory
-
Retrieves the working
cell.
H
- hasFinished() - Method in interface dev.zemco.codegame.evaluation.ISolutionEvaluator
-
Checks if the evaluator has finished its evaluation.
- hasFinished() - Method in class dev.zemco.codegame.evaluation.SolutionEvaluator
- hasFinished() - Method in class dev.zemco.codegame.evaluation.TimeoutSolutionEvaluatorDecorator
- hasJumpLabelMapping(String) - Method in interface dev.zemco.codegame.programs.IProgramBuilder
-
Check if jump label has been added to the
program. - hasJumpLabelMapping(String) - Method in class dev.zemco.codegame.programs.ProgramBuilder
- hasNextValue() - Method in interface dev.zemco.codegame.execution.io.IInputSource
-
Returns true if input source has more values.
- hasNextValue() - Method in class dev.zemco.codegame.execution.io.IterableInputSource
-
Returns if the underlying
iteratorhas next value. - hasValue() - Method in interface dev.zemco.codegame.execution.memory.IMemoryCell
-
Returns if cell currently holds an integer value.
- hasValue() - Method in class dev.zemco.codegame.execution.memory.SimpleMemoryCell
I
- IAlertFactory - Interface in dev.zemco.codegame.presentation.dialog
-
Produces JavaFX
alerts. - IControllerFactory - Interface in dev.zemco.codegame.presentation
-
Produces controllers for the JavaFX views.
- IDialogService - Interface in dev.zemco.codegame.presentation.dialog
-
Service for presenting popup dialogs to the user.
- IEvaluationService - Interface in dev.zemco.codegame.evaluation
-
Service that manages business logic related to evaluation of solutions of
problemscreated by the player. - IEvaluationStrategy - Interface in dev.zemco.codegame.evaluation
-
Algorithm that evaluates if the
execution contexthas reached a state, where it satisfies rules as a valid solution of aproblem case. - IExecutionContext - Interface in dev.zemco.codegame.execution
-
Context of a single execution, which provides access to all components related to the execution.
- IExecutionEngine - Interface in dev.zemco.codegame.execution.engine
-
Engine responsible for an instruction execution within its
execution context. - IExecutionService - Interface in dev.zemco.codegame.execution
-
Service that manages business logic related to execution.
- IFxmlLoaderFactory - Interface in dev.zemco.codegame.presentation
-
Produces JavaFX
fxml loadersready for loading of views. - IFxmlViewSourceProvider - Interface in dev.zemco.codegame.presentation
-
Manages the JavaFX FXML sources for views.
- IHighlightStyleComputer - Interface in dev.zemco.codegame.presentation.highlighting
-
Computes CSS highlight styles for individual parts of a source code for the library RichTextFX.
- IInputSource - Interface in dev.zemco.codegame.execution.io
-
Source of input values during execution.
- IInputSourceFactory - Interface in dev.zemco.codegame.execution.io
-
Produces
input sources. - IInstruction - Interface in dev.zemco.codegame.execution.instructions
-
Instruction is an elementary operation that modifies state of the
execution context. - IInstructionParser - Interface in dev.zemco.codegame.compilation.parsing
-
Parses
instructionsencoded instrings. - IListenerSubscription - Interface in dev.zemco.codegame.presentation
-
Provides a simple way to manage an existing subscription to a JavaFX
observable. - IMemory - Interface in dev.zemco.codegame.execution.memory
-
Collection of
memory cellswhich can hold an integer value. - IMemoryCell - Interface in dev.zemco.codegame.execution.memory
-
Cell in a memory that can hold a single integer value.
- IMemoryCellFactory - Interface in dev.zemco.codegame.execution.memory
-
Produces
memory cells. - IMemoryCellObserver - Interface in dev.zemco.codegame.presentation.execution
-
Observes value changes of a
memory celland notifies listeners about new values. - IMemoryFactory - Interface in dev.zemco.codegame.execution.memory
-
Produces
memory. - IMemoryService - Interface in dev.zemco.codegame.execution.memory
-
Service that manages business logic related to
memory. - ImmutableExecutionContext - Class in dev.zemco.codegame.execution
-
Implementation of the
execution context, where individual components cannot be changed during the execution. - ImmutableExecutionContext(IExecutionEngine, IMemory, IInputSource, IOutputSink) - Constructor for class dev.zemco.codegame.execution.ImmutableExecutionContext
-
Creates an instance of
ImmutableExecutionContext, which holds the provided components. - ImmutableSolutionErrorModel - Class in dev.zemco.codegame.presentation.solution.errors
-
Immutable implementation holding details about an error in user's solution to a
problem. - ImmutableSolutionErrorModel(String, Integer) - Constructor for class dev.zemco.codegame.presentation.solution.errors.ImmutableSolutionErrorModel
- ImmutableStageProvider - Class in dev.zemco.codegame.presentation
-
Immutable provider for JavaFX
stagesused by the application for presentation. - ImmutableStageProvider(Stage) - Constructor for class dev.zemco.codegame.presentation.ImmutableStageProvider
-
Creates an instance of
ImmutableStageProviderthat holds the given primary stage. - ImmutableViewStylesheetProvider - Class in dev.zemco.codegame.presentation
-
Immutable provider for stylesheets for JavaFX views.
- ImmutableViewStylesheetProvider(Map<String, List<String>>) - Constructor for class dev.zemco.codegame.presentation.ImmutableViewStylesheetProvider
-
Creates an instance of
ImmutableStageProviderwith the given view to stylesheet mappings. - INavigator - Interface in dev.zemco.codegame.presentation
-
Handles navigation between routes of the application.
- InputInstruction - Class in dev.zemco.codegame.execution.instructions
-
Instruction that takes next value from
input sourceand copies it to the workingmemory cell. - InputInstruction() - Constructor for class dev.zemco.codegame.execution.instructions.InputInstruction
- InstructionDescriptor - Class in dev.zemco.codegame.programs
-
Instruction descriptors provide additional context to individual
instructionsduring the program execution. - InstructionDescriptor(IInstruction, int) - Constructor for class dev.zemco.codegame.programs.InstructionDescriptor
-
Creates an instance of
InstructionDescriptorfor a specificinstruction. - InstructionExecutionException - Exception in dev.zemco.codegame.execution.instructions
-
Thrown when an illegal state during instruction execution is reached.
- InstructionExecutionException(String) - Constructor for exception dev.zemco.codegame.execution.instructions.InstructionExecutionException
-
Creates an instance of
InstructionExecutionException. - InstructionExecutionException(String, Throwable) - Constructor for exception dev.zemco.codegame.execution.instructions.InstructionExecutionException
-
Creates an instance of
InstructionExecutionException. - InstructionParseException - Exception in dev.zemco.codegame.compilation.parsing
-
Thrown when parsing of an
instructionfails. - InstructionParseException(String) - Constructor for exception dev.zemco.codegame.compilation.parsing.InstructionParseException
-
Creates an instance of
InstructionParseException. - InstructionParseException(String, Throwable) - Constructor for exception dev.zemco.codegame.compilation.parsing.InstructionParseException
-
Creates an instance of
InstructionParseException. - InvalidSyntaxException - Exception in dev.zemco.codegame.compilation
-
Thrown when a source code contains an invalid syntax.
- InvalidSyntaxException(String, int) - Constructor for exception dev.zemco.codegame.compilation.InvalidSyntaxException
-
Creates an instance of
InvalidSyntaxException. - InvalidSyntaxException(String, Throwable, int) - Constructor for exception dev.zemco.codegame.compilation.InvalidSyntaxException
-
Creates an instance of
InvalidSyntaxException. - IOutputSink - Interface in dev.zemco.codegame.execution.io
-
Destination of output values during execution that expects values until it becomes
satisfied. - IOutputSinkFactory - Interface in dev.zemco.codegame.execution.io
-
Produces
output sinks. - IProblemListModel - Interface in dev.zemco.codegame.presentation.problems
-
Manages logic and state related to the selection of
problemto be solved by the user. - IProblemRepository - Interface in dev.zemco.codegame.problems
-
Handles storage of
problemsused by the application. - IProblemService - Interface in dev.zemco.codegame.problems
-
Service that manages business logic related to management of problems available to the application.
- IProgramBuilder - Interface in dev.zemco.codegame.programs
-
Interface for simplifying
programcreation process. - IProgramBuilderFactory - Interface in dev.zemco.codegame.programs
-
Produces
program builders. - IProgramCompiler - Interface in dev.zemco.codegame.compilation
-
Compiler takes a source code and compiles it into an executable
program. - ISolutionErrorModel - Interface in dev.zemco.codegame.presentation.solution.errors
-
Holds details about an error in user's solution to a
problem. - ISolutionErrorModelFactory - Interface in dev.zemco.codegame.presentation.solution.errors
-
Produces
solution error modelsfor exceptions relevant to user's solutions. - ISolutionEvaluator - Interface in dev.zemco.codegame.evaluation
-
Evaluates an underlying
execution contexton set rules. - ISolutionModel - Interface in dev.zemco.codegame.presentation.solution
-
Manages logic and state related to user's solution to a given
problem. - isSatisfied() - Method in interface dev.zemco.codegame.execution.io.IOutputSink
-
Returns if sink expects another value.
- isSatisfied() - Method in class dev.zemco.codegame.execution.io.VerifyingInputSourceToOutputSinkAdapter
-
Returns if the adapted
input sourcehas no next value available. - isSuccessful() - Method in interface dev.zemco.codegame.evaluation.ISolutionEvaluator
-
Checks if the evaluation of the
execution contextis successful. - isSuccessful() - Method in class dev.zemco.codegame.evaluation.SolutionEvaluator
- isSuccessful() - Method in class dev.zemco.codegame.evaluation.TimeoutSolutionEvaluatorDecorator
- IStageProvider - Interface in dev.zemco.codegame.presentation
-
Manages the JavaFX
stagesused by the application for presentation. - IterableInputSource - Class in dev.zemco.codegame.execution.io
-
Input sourcethat uses aniterableas source of inputs. - IterableInputSource(Iterable<Integer>) - Constructor for class dev.zemco.codegame.execution.io.IterableInputSource
-
Creates an instance of
IterableInputSourceby wrapping aniterable. - IViewProvider - Interface in dev.zemco.codegame.presentation
-
Manages the JavaFX views used by application for presentation.
- IViewStylesheetProvider - Interface in dev.zemco.codegame.presentation
-
Manages the stylesheets for JavaFX views.
J
- JavaFxDialogService - Class in dev.zemco.codegame.presentation.dialog
-
Implementation of a service for presenting popup dialogs to the user using JavaFX.
- JavaFxDialogService(IAlertFactory) - Constructor for class dev.zemco.codegame.presentation.dialog.JavaFxDialogService
-
Creates an instance of
JavaFxDialogServicethat presents popup dialogs to user using JavaFX. - JumpIfZeroInstruction - Class in dev.zemco.codegame.execution.instructions
-
Instruction that performs a jump of the
engineto the specified label if the value of the workingmemory cellis equal to zero. - JumpIfZeroInstruction(String) - Constructor for class dev.zemco.codegame.execution.instructions.JumpIfZeroInstruction
-
Creates an instance of
JumpIfZeroInstructionwith the target jump label. - JumpInstruction - Class in dev.zemco.codegame.execution.instructions
-
Instruction that performs a jump of the
engineto the specified label. - JumpInstruction(String) - Constructor for class dev.zemco.codegame.execution.instructions.JumpInstruction
-
Creates an instance of
JumpInstructionwith the target jump label. - jumpToLabel(String) - Method in interface dev.zemco.codegame.execution.engine.IExecutionEngine
-
Performs a jump to an instruction that is followed by the specified
label. - jumpToLabel(String) - Method in class dev.zemco.codegame.execution.engine.ProgramExecutionEngine
-
Performs a jump to an instruction that is followed by the specified
label.
L
- Launcher - Class in dev.zemco.codegame
-
Entrypoint for fat jar deployed version of CodeGame.
M
- main(String[]) - Static method in class dev.zemco.codegame.CodeGameApplication
-
Entrypoint for CodeGame that launches the application.
- main(String[]) - Static method in class dev.zemco.codegame.Launcher
-
Entrypoint for CodeGame when launched from fat jar.
- map(ObservableValue<F>, Function<F, String>) - Static method in class dev.zemco.codegame.util.BindingUtils
-
Creates binding that maps property to
Stringusing amapper. - mapOrDefault(ObservableValue<F>, Function<F, String>, String) - Static method in class dev.zemco.codegame.util.BindingUtils
-
Creates binding that maps property to
Stringusing amapper, falling back todefaultValueif property value isnull. - mapOrNull(ObservableValue<F>, Function<F, String>) - Static method in class dev.zemco.codegame.util.BindingUtils
-
Creates binding that maps property to
Stringusing amapper, falling back tonullif property value isnull. - memoryCellsProperty() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Property holding
memory cell observersfor observing memory state during the test evaluation. - memoryCellsProperty() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- MemoryService - Class in dev.zemco.codegame.execution.memory
-
Implementation of business logic related to
memory. - MemoryService(IMemoryFactory) - Constructor for class dev.zemco.codegame.execution.memory.MemoryService
-
Creates an instance of
MemoryService. - MemoryView - Class in dev.zemco.codegame.presentation.execution
-
JavaFX control presenting the state of a memory during execution.
- MemoryView() - Constructor for class dev.zemco.codegame.presentation.execution.MemoryView
-
Creates an instance of
MemoryView.
N
- navigateTo(String) - Method in interface dev.zemco.codegame.presentation.INavigator
-
Performs a navigation to the specified route.
- navigateTo(String) - Method in class dev.zemco.codegame.presentation.SimpleViewIdNavigator
-
Switches the view of the primary stage to the view id specified by the
routeparameter. - nextInstructionLinePositionProperty() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Property indicating next instruction line position to execute during test evaluation of player's solution.
- nextInstructionLinePositionProperty() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- NoNextInstructionException - Exception in dev.zemco.codegame.execution.engine
-
Thrown when a step is attempted, but engine has no next instruction.
- NoNextInstructionException(String) - Constructor for exception dev.zemco.codegame.execution.engine.NoNextInstructionException
-
Creates an instance of
NoNextInstructionException. - NotAcceptedException - Exception in dev.zemco.codegame.execution.io
-
Thrown by
output sinkafter it rejects an output value. - NotAcceptedException(String) - Constructor for exception dev.zemco.codegame.execution.io.NotAcceptedException
-
Creates an instance of
NotAcceptedException.
O
- OutputInstruction - Class in dev.zemco.codegame.execution.instructions
-
Instruction that emits current value in working
memory celltooutput sink. - OutputInstruction() - Constructor for class dev.zemco.codegame.execution.instructions.OutputInstruction
- OutputSinkSatisfiedEvaluationStrategy - Class in dev.zemco.codegame.evaluation
-
Implementation of the
evaluation strategythat checks if theoutput sinkin theexecution contextis satisfied. - OutputSinkSatisfiedEvaluationStrategy() - Constructor for class dev.zemco.codegame.evaluation.OutputSinkSatisfiedEvaluationStrategy
P
- parseInstruction(String) - Method in class dev.zemco.codegame.compilation.parsing.AbstractNamedParametrizedInstructionParser
- parseInstruction(String) - Method in class dev.zemco.codegame.compilation.parsing.DelegatingInstructionParser
-
Delegates parsing of a single
instructionencoded in a givenstringto given parsers. - parseInstruction(String) - Method in interface dev.zemco.codegame.compilation.parsing.IInstructionParser
-
Parses a single
instructionencoded in a givenstring. - parseInstructionFromParameters(String[]) - Method in class dev.zemco.codegame.compilation.parsing.AbstractNamedParametrizedInstructionParser
-
Parses the named
instructionfrom its given parameters. - parseInstructionFromParameters(String[]) - Method in class dev.zemco.codegame.compilation.parsing.FactorySingleParameterInstructionParser
-
Parses the named
instructionby requesting it from the backingfactory. - parseInstructionFromParameters(String[]) - Method in class dev.zemco.codegame.compilation.parsing.SupplierInstructionParser
-
Parses the named
instructionby retrieving it from thesupplier. - Preconditions - Class in dev.zemco.codegame.util
-
Collection of utility functions for checking validity of arguments.
- Problem - Class in dev.zemco.codegame.problems
-
Problem is a challenge solvable by player.
- Problem(UUID, String, String, int, List<ProblemCase>) - Constructor for class dev.zemco.codegame.problems.Problem
-
Creates an instance of
Problem. - ProblemCase - Class in dev.zemco.codegame.problems
-
Problem case describes a test case of a
problem, which is used to validate player solution. - ProblemCase(List<Integer>, List<Integer>, ProblemCaseMemorySettings) - Constructor for class dev.zemco.codegame.problems.ProblemCase
-
Creates an instance of
ProblemCase. - ProblemCaseMemorySettings - Class in dev.zemco.codegame.problems
-
Problem cases memory settings contains memory settings, which are used to configure execution memory during validation of player's solution.
- ProblemCaseMemorySettings(int, Map<Integer, Integer>) - Constructor for class dev.zemco.codegame.problems.ProblemCaseMemorySettings
-
Creates an instance of
ProblemCaseMemorySettings. - ProblemListController - Class in dev.zemco.codegame.presentation.problems
-
Controller for the problem list view that manipulates provided
problem list model. - ProblemListController(IProblemListModel, INavigator) - Constructor for class dev.zemco.codegame.presentation.problems.ProblemListController
-
Creates an instance of
ProblemListController. - ProblemListModel - Class in dev.zemco.codegame.presentation.problems
-
Implementation of problem list model using
problemsmanaged byproblem service. - ProblemListModel(IProblemService) - Constructor for class dev.zemco.codegame.presentation.problems.ProblemListModel
- problemProperty() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Property holding the target
problemthat is being solved. - problemProperty() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- ProblemService - Class in dev.zemco.codegame.problems
-
Implementation of business logic related to management of problems available to the application that uses provided problem repository as source of problems.
- ProblemService(IProblemRepository) - Constructor for class dev.zemco.codegame.problems.ProblemService
-
Creates an instance of
ProblemService. - problemsProperty() - Method in interface dev.zemco.codegame.presentation.problems.IProblemListModel
-
Property holding all
problemssolvable by the user. - problemsProperty() - Method in class dev.zemco.codegame.presentation.problems.ProblemListModel
- Program - Class in dev.zemco.codegame.programs
-
Program is a set of instructions to be followed during execution.
- Program(List<InstructionDescriptor>, Map<String, Integer>) - Constructor for class dev.zemco.codegame.programs.Program
-
Creates an instance of
Program. - ProgramBuilder - Class in dev.zemco.codegame.programs
-
Simple implementation for building
programsbased on the required rules. - ProgramBuilder() - Constructor for class dev.zemco.codegame.programs.ProgramBuilder
-
Creates an instance of
ProgramBuilderready for use. - ProgramExecutionEngine - Class in dev.zemco.codegame.execution.engine
-
Implementation of the
execution enginethat executes aprogram. - ProgramExecutionEngine(Program, IMemory, IInputSource, IOutputSink) - Constructor for class dev.zemco.codegame.execution.engine.ProgramExecutionEngine
-
Creates an instance of
ProgramExecutionEnginethat executes a givenprogram. - ProgramExecutionService - Class in dev.zemco.codegame.execution
-
Implementation of business logic related to execution.
- ProgramExecutionService(IMemoryService, IInputSourceFactory, IOutputSinkFactory) - Constructor for class dev.zemco.codegame.execution.ProgramExecutionService
-
Creates an instance of
ProgramExecutionEngine.
R
- resetAttempt() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Triggers a new solution attempt.
- resetAttempt() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- ResourceFxmlViewSourceProvider - Class in dev.zemco.codegame.presentation
-
Provides the JavaFX FXML sources from resources of the specified class for specified views.
- ResourceFxmlViewSourceProvider(Class<?>, Map<String, String>) - Constructor for class dev.zemco.codegame.presentation.ResourceFxmlViewSourceProvider
-
Creates an instance of
ResourceFxmlViewSourceProvider. - ResourceLoadException - Exception in dev.zemco.codegame.resources
-
Thrown when an error occurs during application resource loading.
- ResourceLoadException(String) - Constructor for exception dev.zemco.codegame.resources.ResourceLoadException
-
Creates an instance of
ResourceLoadException. - ResourceLoadException(String, Throwable) - Constructor for exception dev.zemco.codegame.resources.ResourceLoadException
-
Creates an instance of
ResourceLoadException.
S
- selectedProblemProperty() - Method in interface dev.zemco.codegame.presentation.problems.IProblemListModel
-
Property holding the currently selected
problemfor solving. - selectedProblemProperty() - Method in class dev.zemco.codegame.presentation.problems.ProblemListModel
- selectProblem(Problem) - Method in interface dev.zemco.codegame.presentation.problems.IProblemListModel
-
Selects a
problemfor solving. - selectProblem(Problem) - Method in class dev.zemco.codegame.presentation.problems.ProblemListModel
- setValue(int) - Method in interface dev.zemco.codegame.execution.memory.IMemoryCell
-
Sets value held by the cell.
- setValue(int) - Method in class dev.zemco.codegame.execution.memory.SimpleMemoryCell
- shouldPerformJump(IExecutionContext) - Method in class dev.zemco.codegame.execution.instructions.JumpIfZeroInstruction
-
Checks if the value of the working
memory cellis equal to zero. - shouldPerformJump(IExecutionContext) - Method in class dev.zemco.codegame.execution.instructions.JumpInstruction
-
Checks if the instruction should request the
engineto perform a jump. - showErrorDialog(String, String) - Method in interface dev.zemco.codegame.presentation.dialog.IDialogService
-
Displays an error alert dialog to the user.
- showErrorDialog(String, String) - Method in class dev.zemco.codegame.presentation.dialog.JavaFxDialogService
- showInformationDialog(String, String) - Method in interface dev.zemco.codegame.presentation.dialog.IDialogService
-
Displays an information alert dialog to the user.
- showInformationDialog(String, String) - Method in class dev.zemco.codegame.presentation.dialog.JavaFxDialogService
- SimpleMemoryCell - Class in dev.zemco.codegame.execution.memory
-
Simple
memory cellthat does not hold any value from the start. - SimpleMemoryCell() - Constructor for class dev.zemco.codegame.execution.memory.SimpleMemoryCell
-
Creates an instance of
SimpleMemoryCellthat holds no value. - SimpleSolutionErrorModelFactory - Class in dev.zemco.codegame.presentation.solution.errors
- SimpleSolutionErrorModelFactory() - Constructor for class dev.zemco.codegame.presentation.solution.errors.SimpleSolutionErrorModelFactory
- SimpleViewIdNavigator - Class in dev.zemco.codegame.presentation
-
Simple implementation of navigation which treats requested navigation routes as view ids.
- SimpleViewIdNavigator(IStageProvider, IViewProvider) - Constructor for class dev.zemco.codegame.presentation.SimpleViewIdNavigator
-
Creates an instance of
SimpleViewIdNavigatorready for navigation. - SolutionController - Class in dev.zemco.codegame.presentation.solution
-
Controller for the solution view that manipulates provided
solution model. - SolutionController(ISolutionModel, INavigator, IDialogService, IHighlightStyleComputer) - Constructor for class dev.zemco.codegame.presentation.solution.SolutionController
-
Creates an instance of
SolutionController. - SolutionEvaluator - Class in dev.zemco.codegame.evaluation
-
Implementation of a
solution evaluatorthat evaluates an underlyingexecution contextagainst a specificproblem caseusing anevaluation strategy. - SolutionEvaluator(IExecutionContext, IEvaluationStrategy, ProblemCase) - Constructor for class dev.zemco.codegame.evaluation.SolutionEvaluator
-
Creates an instance of
SolutionEvaluator. - SolutionModel - Class in dev.zemco.codegame.presentation.solution
-
Implementation of
solution modelevaluating solution created by player. - SolutionModel(IProblemListModel, IProgramCompiler, IEvaluationService, ISolutionErrorModelFactory) - Constructor for class dev.zemco.codegame.presentation.solution.SolutionModel
-
Creates an instance of
SolutionModel. - start(Stage) - Method in class dev.zemco.codegame.CodeGameApplication
-
Initializes the application and presents the initial view to the user.
- startTestEvaluation() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Starts test evaluation of the player's solution on test problem case.
- startTestEvaluation() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- step() - Method in interface dev.zemco.codegame.evaluation.ISolutionEvaluator
-
Steps the underlying execution and checks if the new state satisfies the rules being evaluated.
- step() - Method in class dev.zemco.codegame.evaluation.SolutionEvaluator
- step() - Method in class dev.zemco.codegame.evaluation.TimeoutSolutionEvaluatorDecorator
-
Steps the decorated evaluator if the maximum allowed number of steps was not reached.
- step() - Method in interface dev.zemco.codegame.execution.engine.IExecutionEngine
-
Executes a single instruction on the engine's
execution contextand moves to the next. - step() - Method in class dev.zemco.codegame.execution.engine.ProgramExecutionEngine
- StepEvaluationException - Exception in dev.zemco.codegame.evaluation
-
Thrown during the evaluation step if the evaluation reaches an undesired state.
- StepEvaluationException(String) - Constructor for exception dev.zemco.codegame.evaluation.StepEvaluationException
-
Creates an instance of
StepEvaluationException. - StepEvaluationException(String, Throwable) - Constructor for exception dev.zemco.codegame.evaluation.StepEvaluationException
-
Creates an instance of
StepEvaluationException. - StepExecutionException - Exception in dev.zemco.codegame.execution.engine
-
Thrown when an exception is thrown during instruction execution while engine is doing a step.
- StepExecutionException(String, Throwable, int) - Constructor for exception dev.zemco.codegame.execution.engine.StepExecutionException
-
Creates an instance of
StepExecutionException. - stepTestEvaluation() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Steps test evaluation of the player's solution.
- stepTestEvaluation() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- stopTestEvaluation() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Stops test evaluation of the player's solution.
- stopTestEvaluation() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- submitSolution() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Attempts to submit the player's solution.
- submitSolution() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
- SupplierInstructionParser - Class in dev.zemco.codegame.compilation.parsing
-
Parses a named
instructionwithout parameters by requesting it fromsupplier. - SupplierInstructionParser(String, Supplier<IInstruction>) - Constructor for class dev.zemco.codegame.compilation.parsing.SupplierInstructionParser
-
Creates an instance of
SupplierInstructionParserthat parsesinstructionswith the given name by requesting them from the givensupplier. - syntaxErrorProperty() - Method in interface dev.zemco.codegame.presentation.solution.ISolutionModel
-
Property holding the last
solution error modelindicating syntax error in the player's solution source code. - syntaxErrorProperty() - Method in class dev.zemco.codegame.presentation.solution.SolutionModel
T
- TimeoutException - Exception in dev.zemco.codegame.evaluation
-
Thrown during the evaluation step if maximum allowed number of steps was reached.
- TimeoutException(String) - Constructor for exception dev.zemco.codegame.evaluation.TimeoutException
-
Creates an instance of
TimeoutException. - TimeoutSolutionEvaluatorDecorator - Class in dev.zemco.codegame.evaluation
-
Enforces maximum step count for a given evaluation.
- TimeoutSolutionEvaluatorDecorator(ISolutionEvaluator, int) - Constructor for class dev.zemco.codegame.evaluation.TimeoutSolutionEvaluatorDecorator
-
Creates an instance of
TimeoutSolutionEvaluatorDecoratorwhich wraps an existingevaluator. - toString() - Method in class dev.zemco.codegame.problems.Problem
-
Returns formatted string identifying this problem.
U
- UnknownJumpLabelException - Exception in dev.zemco.codegame.execution.engine
-
Thrown when a jump is attempted, but the jump label is unknown to the engine.
- UnknownJumpLabelException(String) - Constructor for exception dev.zemco.codegame.execution.engine.UnknownJumpLabelException
-
Creates an instance of
UnknownJumpLabelException. - UnknownRouteException - Exception in dev.zemco.codegame.presentation
-
Thrown when navigation is attempted, but the route is not known by the navigator.
- UnknownRouteException(String, Throwable) - Constructor for exception dev.zemco.codegame.presentation.UnknownRouteException
-
Creates an instance of
UnknownRouteException. - UnknownViewException - Exception in dev.zemco.codegame.presentation
-
Thrown when a component does not recognize a view.
- UnknownViewException(String) - Constructor for exception dev.zemco.codegame.presentation.UnknownViewException
-
Creates an instance of
UnknownViewException. - unsubscribe() - Method in interface dev.zemco.codegame.presentation.IListenerSubscription
-
Unsubscribes from the
observableby removing the backing listener. - UpdatableMemoryCellObserverAdapter - Class in dev.zemco.codegame.presentation.execution
-
Adapts existing
memory cellby observing its value when manually requested using theUpdatableMemoryCellObserverAdapter.updateValue()method. - UpdatableMemoryCellObserverAdapter(int, IMemoryCell) - Constructor for class dev.zemco.codegame.presentation.execution.UpdatableMemoryCellObserverAdapter
-
Creates an instance of
UpdatableMemoryCellObserverAdapteradapting and observing an existingmemory cell. - updateValue() - Method in class dev.zemco.codegame.presentation.execution.UpdatableMemoryCellObserverAdapter
-
Observes the current value of the adapted
memory celland notifies its listeners via theUpdatableMemoryCellObserverAdapter.valueProperty()if the value has changed. - UrlObjectMapperProblemRepository - Class in dev.zemco.codegame.problems
- UrlObjectMapperProblemRepository(URL, ObjectMapper) - Constructor for class dev.zemco.codegame.problems.UrlObjectMapperProblemRepository
-
Creates an instance of
UrlObjectMapperProblemRepository.
V
- valueProperty() - Method in interface dev.zemco.codegame.presentation.execution.IMemoryCellObserver
-
Property indicating last value of the observed
memory cell. - valueProperty() - Method in class dev.zemco.codegame.presentation.execution.UpdatableMemoryCellObserverAdapter
- VerifyingInputSourceToOutputSinkAdapter - Class in dev.zemco.codegame.execution.io
-
Output sinkthat matches execution outputs to values frominput source. - VerifyingInputSourceToOutputSinkAdapter(IInputSource) - Constructor for class dev.zemco.codegame.execution.io.VerifyingInputSourceToOutputSinkAdapter
-
Creates an instance of
VerifyingInputSourceToOutputSinkAdapterby adapting existinginput source.
All Classes and Interfaces|All Packages|Serialized Form