public class ReasonerDescriptor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<net.ssehub.easy.varModel.capabilities.IReasonerCapability> |
capabilities |
private java.net.URL |
downloadSource |
private java.lang.String |
license |
private java.lang.String |
licenseRestriction |
private java.lang.String |
name |
private java.lang.String |
version |
| Constructor and Description |
|---|
ReasonerDescriptor(java.lang.String name,
java.lang.String version,
java.lang.String license,
java.lang.String licenseRestriction,
java.net.URL downloadSource)
Creates a new reasoner descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCapabilities(java.util.Collection<net.ssehub.easy.varModel.capabilities.IReasonerCapability> capabilities)
Adds a collection of capabilities.
|
protected void |
addCapability(net.ssehub.easy.varModel.capabilities.IReasonerCapability capability)
Adds a capability.
|
net.ssehub.easy.varModel.capabilities.IReasonerCapability[] |
getCapabilities()
Returns the supported capabilities.
|
int |
getCapabilityCount()
Returns the number of provided capabilities.
|
java.net.URL |
getDownloadSource()
Returns the source for downloading a licensed version.
|
java.lang.String |
getLicense()
Returns a textual form of the license of the reasoner.
|
java.lang.String |
getLicenseRestriction()
Returns a license restriction in textual form, e.g.
|
java.lang.String |
getName()
Returns the name of the reasoner.
|
java.lang.String |
getVersion()
Returns a textual form of the currently integrated version.
|
boolean |
hasCapability(net.ssehub.easy.varModel.capabilities.IReasonerCapability capability)
Returns whether the described reasoner has the given capability.
|
boolean |
isReadyForUse()
Returns whether this reasoner is licensed and valid so that it may be used.
|
boolean |
providesAffectedVariables()
Returns whether the reasoner provides information about the affected variables
via
ReasoningResult.getAffectedVariable(int). |
private java.net.URL downloadSource
private java.lang.String name
private java.lang.String version
private java.lang.String license
private java.lang.String licenseRestriction
private java.util.Set<net.ssehub.easy.varModel.capabilities.IReasonerCapability> capabilities
public ReasonerDescriptor(java.lang.String name,
java.lang.String version,
java.lang.String license,
java.lang.String licenseRestriction,
java.net.URL downloadSource)
name - the name of the reasonerversion - a version description of the integrated reasoner (may be null)license - the license (may be null)licenseRestriction - a restriction of the license to be displayed, e.g. "valid until March 2020" (may be null)downloadSource - the source for downloading a licensed version (may be null if the implementation is complete)protected void addCapability(net.ssehub.easy.varModel.capabilities.IReasonerCapability capability)
capability - the capability to add (null is ignored)protected void addCapabilities(java.util.Collection<net.ssehub.easy.varModel.capabilities.IReasonerCapability> capabilities)
capabilities - the capabilities to be added (null is ignored)public java.net.URL getDownloadSource()
public java.lang.String getName()
public java.lang.String getVersion()
public java.lang.String getLicense()
public java.lang.String getLicenseRestriction()
public boolean isReadyForUse()
true if it is licensed and ready for use, true if it is not ready, e.g., due to
license restriction and a version shall be obtained via getDownloadSource()public boolean providesAffectedVariables()
ReasoningResult.getAffectedVariable(int).true if the reasoner provides this information, false elsepublic boolean hasCapability(net.ssehub.easy.varModel.capabilities.IReasonerCapability capability)
capability - the capability to search for (null is ignored)public int getCapabilityCount()
public net.ssehub.easy.varModel.capabilities.IReasonerCapability[] getCapabilities()
Copyright © 2009 - 2018 SSE. All Rights Reserved.