org.grinvin.invariants.computers

Class AbstractInvariantComputer

Implemented Interfaces:
InvariantComputer
Known Direct Subclasses:
AbstractInvariantCComputer

public abstract class AbstractInvariantComputer
extends java.lang.Object
implements InvariantComputer

Abstract superclass used by most invariant computers. Provides a standard identifier and version.

Constructor Summary

AbstractInvariantComputer()

Method Summary

String
getId()
The id of an invariant computer is usually the same as its fully qualified class name.
String
getVersion()
This implementation returns the string 1.0.

Constructor Details

AbstractInvariantComputer

protected AbstractInvariantComputer()

Method Details

getId

public String getId()
The id of an invariant computer is usually the same as its fully qualified class name. For reasons of backwards compatibility however, ids of a class in one of the subpackages of org.grinvin.invariants.computers are given an id as if they resided in the package org.grinvin.invariants.
Specified by:
getId in interface InvariantComputer

getVersion

public String getVersion()
This implementation returns the string 1.0.
Specified by:
getVersion in interface InvariantComputer