ConstraintsObjective
instead.@Deprecated public class ModelQueriesHardObjective extends BaseObjective
Constructor and Description |
---|
ModelQueriesHardObjective()
Deprecated.
|
ModelQueriesHardObjective(java.util.List<org.eclipse.viatra.query.runtime.api.IQuerySpecification<? extends org.eclipse.viatra.query.runtime.api.ViatraQueryMatcher<? extends org.eclipse.viatra.query.runtime.api.IPatternMatch>>> constraints)
Deprecated.
|
ModelQueriesHardObjective(java.lang.String name)
Deprecated.
|
ModelQueriesHardObjective(java.lang.String name,
java.util.List<org.eclipse.viatra.query.runtime.api.IQuerySpecification<? extends org.eclipse.viatra.query.runtime.api.ViatraQueryMatcher<? extends org.eclipse.viatra.query.runtime.api.IPatternMatch>>> constraints)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IObjective |
createNew()
Deprecated.
Returns an instance of the
IObjective . |
java.lang.Double |
getFitness(ThreadContext context)
Deprecated.
Calculates the value of the objective on a given solution (trajectory).
|
ModelQueryType |
getType()
Deprecated.
|
void |
init(ThreadContext context)
Deprecated.
Initializes the objective.
|
boolean |
isHardObjective()
Deprecated.
Returns true if the objective is a hard objective.
|
boolean |
satisifiesHardObjective(java.lang.Double fitness)
Deprecated.
Determines if the given fitness value satisfies the hard objective.
|
void |
setType(ModelQueryType type)
Deprecated.
|
ModelQueriesHardObjective |
withConstraint(org.eclipse.viatra.query.runtime.api.IQuerySpecification<? extends org.eclipse.viatra.query.runtime.api.ViatraQueryMatcher<? extends org.eclipse.viatra.query.runtime.api.IPatternMatch>> constraint)
Deprecated.
Adds a new VIATRA Query Specification.
|
ModelQueriesHardObjective |
withType(ModelQueryType type)
Deprecated.
|
equals, getComparator, getLevel, getName, hashCode, setComparator, setLevel, toString, withComparator, withLevel
public ModelQueriesHardObjective(java.lang.String name, java.util.List<org.eclipse.viatra.query.runtime.api.IQuerySpecification<? extends org.eclipse.viatra.query.runtime.api.ViatraQueryMatcher<? extends org.eclipse.viatra.query.runtime.api.IPatternMatch>>> constraints)
public ModelQueriesHardObjective(java.util.List<org.eclipse.viatra.query.runtime.api.IQuerySpecification<? extends org.eclipse.viatra.query.runtime.api.ViatraQueryMatcher<? extends org.eclipse.viatra.query.runtime.api.IPatternMatch>>> constraints)
public ModelQueriesHardObjective(java.lang.String name)
public ModelQueriesHardObjective()
public ModelQueriesHardObjective withConstraint(org.eclipse.viatra.query.runtime.api.IQuerySpecification<? extends org.eclipse.viatra.query.runtime.api.ViatraQueryMatcher<? extends org.eclipse.viatra.query.runtime.api.IPatternMatch>> constraint)
constraint
- A VIATRA Query Specification.public java.lang.Double getFitness(ThreadContext context)
IObjective
context
- The ThreadContext
public void init(ThreadContext context)
IObjective
context
- The ThreadContext
.public IObjective createNew()
IObjective
IObjective
. If it returns the same instance, all the methods has to be thread
save as they are called concurrently.public boolean isHardObjective()
IObjective
IObjective.satisifiesHardObjective(Double)
is called.IObjective.satisifiesHardObjective(Double)
,
IObjective
public boolean satisifiesHardObjective(java.lang.Double fitness)
IObjective
fitness
- The fitness value of a solution.IObjective
public ModelQueryType getType()
public void setType(ModelQueryType type)
public ModelQueriesHardObjective withType(ModelQueryType type)