User:Pitagora/notes

OpenSimKit
Brief description:
 * The application opens two sockets, ServerSocket, one for TC and one for TM. The Computation thread uses TMSocket, while the CommandThread uses tcSocket.
 * The simulation server starts two threads, one for computing the simulation, and one for commanding.
 * The computation thread uses a class that refers to the time step, and this one contains all model items, and executes the timeStep method of each part of the model.
 * After each time step, a packet creator is used to produce the telemetry based on the state of the models. Essentially, a few parameters are read, and a OSKPacket is created (the code to write into an output stream is commented out).
 * The models have functions that get called for each step.
 * The command protocol is string. First word is the command.

Other things:

from the simulator, but not used.
 * There is a logger thread reading simulator result data for display

Possibilities:
 * Try to use OSGI. The Karaf project with Blueprint provides interesting startup configuration, as the Spring Framework, and modularization.
 * The OSK commands would be integrated to the osgi console.
 * The model elements should be programmed in Scala (see a simulation section in the draft by the Scala author).
 * The infraestructure for running a simulation should be a core osgi bundle. It might be also written in Scala.