Add Java subproject allowing tasks to be programmed in Java with Python wrappers#7
Add Java subproject allowing tasks to be programmed in Java with Python wrappers#7Mac-Coleman wants to merge 75 commits intomainfrom
Conversation
Adds Py4j as a dependency.
Skips uploading of histogram files
This adds py4j.jar to your python installations! Somewhere around share/py4j/py4j0.x.x.x.jar...
| * Rigorous Test :-) | ||
| */ | ||
| @Test | ||
| public void shouldAnswerWithTrue() { |
There was a problem hiding this comment.
ah man I don't think these tests will pass.... \j
|
updated branch to main so we have pretty simulator :) |
i didn't know it existed
I have no idea if this is a good implementation but it's the first one that came to mind
Spinning gears with Cornell "C"
|
Writing a note to myself to remember what to continue thinking about before merging this in: Currently, the As long as we're adding fields to these classes, I think it might also be useful to have a description field where task artists can explain what they made and what significance it holds to them. This field could be written into |
This reverts commit 25762f2. I don't know why I thought this would work
This pull request is to add support for tasks programmed in Java to be run on the sign.
Short summary:
c4_sign/java_c4signcan be compiled into a Jar file containing all the classes for the tasks written in Java.bin/setup_java_project.shbin/compile_java_project.shJavaTaskis a wrapper for instances of Java classes that extendJavaTaskBase.JavaTaskControllerhas a static methodgetActiveTasks()that returns anArrayList<JavaTaskBase>of all the tasks that can be run.ScreenManager.update_tasksby starting the Py4J gateway server, callingJavaTaskController.getActiveTasks(), and creating a PythonJavaTaskfor each Java class discovered.I'm not sure yet how robust my solution for setting up the Maven project is for everyone's install of Python, and it probably doesn't work natively for most Windows users...