public class JIPipeArtifact extends AbstractJIPipeParameterCollection implements Comparable<JIPipeArtifact>, JIPipeValidatable
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterChangedEventEmitter, JIPipeParameterCollection.ParameterChangedEventListener, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEventEmitter, JIPipeParameterCollection.ParameterStructureChangedEventListener, JIPipeParameterCollection.ParameterUIChangedEvent, JIPipeParameterCollection.ParameterUIChangedEventEmitter, JIPipeParameterCollection.ParameterUIChangedEventListener
Constructor and Description |
---|
JIPipeArtifact() |
JIPipeArtifact(JIPipeArtifact other) |
JIPipeArtifact(String fullArtifactId) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(@NotNull JIPipeArtifact o) |
String |
getArtifactId() |
String |
getClassifier() |
Path |
getDefaultInstallationPath(Path localRepositoryPath) |
String |
getFullId()
Returns a string GroupId.ArtifactId:Version-Classifier
|
int |
getGPUVersion(String prefix) |
String |
getGroupId() |
String |
getVersion() |
int |
getVersionRevision() |
String |
getVersionWithoutRevision() |
boolean |
isCompatible()
Returns true if this artifact is compatible with the current system
Includes non-native compatibility (e.g., x86 is compatible to amd64)
|
boolean |
isGPUCompatible(JIPipeArtifactAccelerationPreference accelerationPreference,
Vector2iParameter accelerationPreferenceVersions) |
boolean |
isNative()
Returns true if the artifact is perfectly compatible with the current system (excludes translation layers like x86 to amd64)
|
boolean |
isRequireGPU() |
void |
reportValidity(JIPipeValidationReportContext reportContext,
JIPipeValidationReport report)
Generates a validity report
|
void |
setArtifactId(String artifactId) |
void |
setClassifier(String classifier) |
void |
setFullId(String fullId) |
void |
setGroupId(String groupId) |
void |
setVersion(String version) |
String |
toString() |
getParameterChangedEventEmitter, getParameterStructureChangedEventEmitter, getParameterUIChangedEventEmitter, onParameterChanged, onParameterStructureChanged, onParameterUIChanged, registerSubParameter, registerSubParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
generateValidityReport
deserializeFromJsonNode, emitParameterChangedEvent, emitParameterStructureChangedEvent, emitParameterUIChangedEvent, getContextActions, getParameter, getParameterAccess, installUIOverrideParameterEditor, installUIParameterOptions, isParameterUIVisible, isParameterUIVisible, serializeToJsonFile, serializeToJsonGenerator, serializeToJsonString, setParameter
public JIPipeArtifact()
public JIPipeArtifact(JIPipeArtifact other)
public JIPipeArtifact(String fullArtifactId)
public String getGroupId()
public void setGroupId(String groupId)
public String getArtifactId()
public void setArtifactId(String artifactId)
public String getVersion()
public void setVersion(String version)
public String getClassifier()
public void setClassifier(String classifier)
public String getFullId()
public void setFullId(String fullId)
public boolean isCompatible()
public boolean isNative()
public boolean isRequireGPU()
public int compareTo(@NotNull @NotNull JIPipeArtifact o)
compareTo
in interface Comparable<JIPipeArtifact>
public int getGPUVersion(String prefix)
public boolean isGPUCompatible(JIPipeArtifactAccelerationPreference accelerationPreference, Vector2iParameter accelerationPreferenceVersions)
public void reportValidity(JIPipeValidationReportContext reportContext, JIPipeValidationReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
reportContext
- the report contextreport
- the report to be added topublic String getVersionWithoutRevision()
public int getVersionRevision()
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.