public class RuntimeEnvironmentConstraint extends RuntimeEnvironment
Modifier and Type | Field and Description |
---|---|
protected String |
relation
Identifies the relation between runtime environments to be tested
|
id, name, version
Constructor and Description |
---|
RuntimeEnvironmentConstraint(String id,
String relation)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static boolean |
acceptedRelation(String relation)
Tests of a relation is supported
|
static String[] |
getAcceptedRelations() |
static String |
getDefaultRelation() |
String |
getRelation()
Accessor function for relation
|
boolean |
isFulfilledBy(RuntimeEnvironment re)
Perfoms test if the RuntimeEnvironment (RE) passed as argument fulfills the requirements set by the constraint.
|
boolean |
isFulfilledByAtLeastOneIn(Collection<RuntimeEnvironment> REs)
Iterates over all the RuntimeEnvironments passed as argument.
|
static void |
main(String[] argv)
For testing purposes
|
atLeastAsCapableAs, atLeastAsCapableAs, atLeastAsCapableAsAnyOf, compareTo, compareVersions, getID, getName, getVersion, isInferiorToAtLeastOneIn, toString
protected String relation
public static String[] getAcceptedRelations()
public static String getDefaultRelation()
public String getRelation()
public static boolean acceptedRelation(String relation)
relation
- public boolean isFulfilledBy(RuntimeEnvironment re)
re
- - RE to testpublic boolean isFulfilledByAtLeastOneIn(Collection<RuntimeEnvironment> REs)
REs
- - list of RuntimeEnvironments, mostly those offered at a particular queuepublic static void main(String[] argv)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.