org.cicirello.examples.jpt.ExamplesShared Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpt-examples Show documentation
Show all versions of jpt-examples Show documentation
This package contains several example programs of
the usage of the JavaPermutationTools (JPT) library. JPT is a Java
library that enables representing and generating permutations and
sequences, as well as performing computation on permutations and
sequences. It includes implementations of a variety of permutation
distance metrics as well as distance metrics on sequences (i.e.,
Strings, arrays, and other ordered data types). In addition to
programs demonstrating the usage of the JPT library, the
jpt-examples package also contains programs for replicating the
experiments from a few published papers that utilized the library
or implementations on which the library is based. JPT's source code
is maintained on GitHub, and the prebuilt jars of the library can
be imported from Maven Central using maven or other build tools.
The purpose of the package jpt-examples is to demonstrate usage of
the major functionality of the JPT library. You can find out
more about the JPT library itself from its
website: https://jpt.cicirello.org/.
The newest version!
/*
* Example programs for JavaPermutationTools library.
* Copyright (C) 2018-2023 Vincent A. Cicirello
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package org.cicirello.examples.jpt;
/**
* Code shared by multiple example programs.
*
* @author Vincent A. Cicirello, https://www.cicirello.org/
*/
public class ExamplesShared {
/** Prints copyright and license notices. */
public static void printCopyrightAndLicense() {
System.out.println();
System.out.println("Example program for JavaPermutationTools library.");
System.out.println("Copyright (C) 2018-2023 Vincent A. Cicirello");
System.out.println("This program comes with ABSOLUTELY NO WARRANTY. This is free");
System.out.println("software, and you are welcome to redistribute it under certain");
System.out.println("conditions. See the GNU General Public License for more");
System.out.println("details: https://www.gnu.org/licenses/gpl-3.0.html");
System.out.println();
}
}