pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/csdms/bmi-java

/> GitHub - csdms/bmi-java: Basic Model Interface for Java · GitHub
Skip to content

csdms/bmi-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

104 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOI Build CI

bmi-java

Java bindings for the CSDMS Basic Model Interface.

Build/Install

The Java BMI bindings can be built on Linux, macOS, and Windows. Instructions are given below.

Prerequisites:

To compile and package the BMI Java bindings, run

$ mvn clean package

This will generate files in the directory target. The result will look like

target
|-- bmi.jar
|-- classes
|   `-- edu
|       `-- colorado
|           `-- csdms
|               `-- bmi
|                   |-- BMI.class
|                   |-- BmiControl.class
|                   |-- BmiGetter.class
|                   |-- BmiGrid.class
|                   |-- BmiGridRectilinear.class
|                   |-- BmiGridStructuredQuad.class
|                   |-- BmiGridUniformRectilinear.class
|                   |-- BmiGridUnstructured.class
|                   |-- BmiInfo.class
|                   |-- BmiSetter.class
|                   |-- BmiTime.class
|                   `-- BmiVars.class
|-- generated-sources
|   `-- annotations
|-- maven-archiver
|   `-- pom.properties
`-- maven-status
    `-- maven-compiler-plugin
        `-- compile
            `-- default-compile
                |-- createdFiles.lst
                `-- inputFiles.lst

To install the jar file to your local Maven repository (typically ~/.m2/repository) for use with other packages, run

$ mvn install

The result in the local repository will look like

edu
`-- colorado
    `-- csdms
        `-- bmi
            |-- 2.0
            |   |-- _remote.repositories
            |   |-- bmi-2.0.jar
            |   |-- bmi-2.0.jar.md5
            |   |-- bmi-2.0.jar.sha1
            |   |-- bmi-2.0.pom
            |   |-- bmi-2.0.pom.md5
            |   `-- bmi-2.0.pom.sha1
            |-- maven-metadata-local.xml
            |-- maven-metadata-local.xml.md5
            `-- maven-metadata-local.xml.sha1

4 directories, 10 files

Developer note: Deploy

The bmi package is hosted on the CSDMS Apache Maven Repository. To deploy the bmi package to this site, run

$ mvn deploy

on a machine where you have provided server settings and encrypted login credentials for the site in your local settings.xml file.

Use

To write a BMI for a model, install the bmi.jar file and implement all the BMI functions that are listed in the BMI Java source package and described in the documentation. BMI functions that aren't used (e.g., getGridX for a uniform rectilinear grid) can simply return a null value. A sample implementation is given in the https://github.com/csdms/bmi-example-java repository.

About

Basic Model Interface for Java

Topics

Resources

License

Stars

Watchers

Forks

Contributors

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy