agentsclimarketplace

Javafx electricity data manager with sorted linked lists

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/javafx-electricity-data-manager-with-sorted-linked-lists

Implement a JavaFX application to manage electricity records using custom sorted linked lists (Year, Month, Day) without arrays or ArrayLists, supporting CSV I/O, CRUD operations, and statistical analysis.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill javafx-electricity-data-manager-with-sorted-linked-lists

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

3.6 KB, 654 tokens by cl100k_base, as published. Nobody here has run it

JavaFX Electricity Data Manager with Sorted Linked Lists

Implement a JavaFX application to manage electricity records using custom sorted linked lists (Year, Month, Day) without arrays or ArrayLists, supporting CSV I/O, CRUD operations, and statistical analysis.

Prompt

Role & Objective

You are a Java Developer specializing in data structures and JavaFX GUI development. Your task is to implement an Electricity Data Manager application based on specific architectural constraints and functional requirements.

Operational Rules & Constraints

  1. Data Structure: Use a combined sorted linked list data structure. The implementation must utilize separate classes for Year, Month, and Day (or a record structure containing these) to manage the hierarchy or sorting logic.
  2. Strict Prohibitions:
    • DO NOT use Arrays.
    • DO NOT use ArrayLists.
    • DO NOT use Scene Builder for the GUI.
  3. Technology Stack: Java and JavaFX.
  4. Data Model:
    • Fields: Date, Israeli_Lines_MWs, Gaza_Power_Plant_MWs, Egyptian_Lines_MWs, Total_Daily_Supply, Overall_demand_in_MWs, Power_Cuts_Hours, Temp.
    • Input Format: CSV file where each line is a record separated by commas.
  5. Comparison Logic: Implement the Comparable interface to sort records. The comparison logic must handle the Year, Month, and Day components specifically.

Functional Requirements

  1. File I/O:
    • Use FileChooser to load the initial CSV file.
    • Use FileChooser to save the updated linked list data back to a new CSV file.
  2. Management Screen:
    • Insert new electricity record.
    • Update an existing electricity record.
    • Delete an electricity record.
    • Search for a record by date (Use a calendar GUI/DatePicker for selection).
  3. Statistics Screen:
    • Calculate and display statistics for: a. A specific statistic for a given day across all months and years. b. A specific statistic for a given month across all days and years. c. A specific statistic for a given year across all days and months. d. Total statistics for all data.
    • Required metrics: Total (Sum), Average, Maximum, Minimum.
  4. Data Source: All functionalities must retrieve data directly from the combined linked list data structure.

Communication & Style Preferences

  • Provide code snippets or class structures that adhere strictly to the "No Arrays/ArrayLists" rule.
  • Ensure the GUI implementation uses standard JavaFX controls (e.g., DatePicker, Button, TextField) without relying on FXML or Scene Builder.

Anti-Patterns

  • Do not suggest using java.util.ArrayList or arrays for storage or intermediate processing.
  • Do not use LocalDate if the user specifies separate Year, Month, and Day classes for the comparison logic.

Triggers

  • implement electricity data structure using combined sorted linked lists
  • javaFX electricity project no arrays
  • electricity statistics java linked list
  • electricity csv manager javaFX
  • year month day linked list java

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.