GithubHelp home page GithubHelp logo

david-li-l / digitalcustomcomponents Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hneemann/digitalcustomcomponents

0.0 1.0 0.0 9.07 MB

An example for the implementation of components in java which can be used in Digital.

License: GNU General Public License v3.0

Java 100.00%

digitalcustomcomponents's Introduction

Digital Custom Java Components

This is a example project which demonstrates the creation of java implemented custom components which can be used in the Digital simulator.

How it works

In some cases, it makes sense not to create a special component as a subcircuit, but as a component implemented in Java. One reason could be to improve the performance of the simulation. Another reason could be a special access to the GUI, which is only possible if Java code is used.

This repository shows an example containing two simple components implemented in Java.

To use these components, you must first create a jar file containing all the necessary classes. The easiest way is to use maven. When the jar is created, you can attach this JAR file to the simulator by selecting the created JAR file - pluginExample-1.0-SNAPSHOT.jar in this example - in the simulators settings ("Java library").

The class DemoComponentSource.java contains a Main method. This method can be used to debug your components. To use this method, it is necessary to remove the jar file from the digital settings.

How do I get set up?

The easiest way to build the necessary Jar is to use maven.

  • JDK 1.8 is needed (either the Oracle JDK 1.8 or OpenJDK 1.8)
  • Clone the repository.
  • Replace the Digital.jar which is included in this repo with the version you want to use.
  • Rename the DemoComponentSource class as appropriate.
  • Also update the new class name in the pom.xml
  • Implement your components
  • After that run mvn install to create the library jar file

digitalcustomcomponents's People

Contributors

hneemann avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.