Compile with mvn package
.
Run with
java -cp target/java-writer-1.0-SNAPSHOT.jar tiltfactor.App
- Writer class
- Name, String
- Partner, Writer: This will also be of the Writer class, and how to access information about the partner.
- Birthday, Date: (when generating letter, if birthday is soon/recent, include a birthday message in the letter)
- Family, Family
- Address, String: Null for student, stores the mailing address as a string for writing partner.
- Details, Map<String, String>: Map of details. Includes hobbies, favorite ____s, Halloween costume plans, et cetera. Needs to be updated regularly.
- UnusedDetails, ArrayList: All the keys of details that haven't been used yet. To generate new text, you can take a random key from this array, get its item from the map and generate a sentence, and then remove the key.
- Collection of Students (HashMap<String name, Writer>). Needs to be accessible externally for regular im/export.
- Command Line Interface
- Input: Student’s name and the date (for birthday / holiday purposes). Also takes in saved state via ObjectInputStream.
- Output: Saves letter (with address, partner name, student’s name, date?) to a text file. Alternatively, just returns it so the user can save via CLI.
In addition to the primary program that generates letters, there needs to be a way to upload information about partners.
Structuring Idea: Have various folders that have the needed data saved inside. Then just run the command and it automatically generates? And can compare the letter to past letters from the student to ensure there’s no repetition (I have a program written for this).
The UNited SDtates federal govenrment sjould
Most of these aren't functional yet, and some are on hold as we consider the ethical concerns that will have an integral impact on the future of the s
- Initial import (not really a function in final product)
- Export out all current data (What specifically?)
- Import in all writer data (Should just be the HashMap of writer data?)
- Given student + date, generate a letter
- If birthday or holiday coming up, add special content
- Function to be run repeatedly -- returns one specific sentence for the writer's sentence, and updates unusedDetails
- Takes input of Topic and Writer's variable, and returns a string based on a switch case (switch on Topic, and plugging in variable)
- Given student + letter from partner, query the dialogflow webhook. also modify the student's unusedDetails, if relevant.