public final class DefaultQueryFunctionCollection extends AbstractList<QueryFunction> implements QueryFunctionCollection
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput). See QueryDistributionCollection.modCount| Constructor and Description |
|---|
DefaultQueryFunctionCollection(Network network)
Initializes a new instance of the
DefaultQueryFunctionCollection class, passing the target Bayesian network as a parameter. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
QueryFunction item) |
QueryFunction |
add(QueryFunctionOutput function)
Adds the specified function, automatically creating a
QueryFunction instance. |
void |
clear() |
QueryFunction |
get(int index) |
Network |
getNetwork()
Gets the
Network that is the target for a Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput). |
QueryFunction |
remove(int index) |
QueryFunction |
set(int index,
QueryFunction item) |
int |
size() |
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic DefaultQueryFunctionCollection(Network network)
DefaultQueryFunctionCollection class, passing the target Bayesian network as a parameter.network - The network that will be the target of the Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).public int size()
size in interface Collection<QueryFunction>size in interface List<QueryFunction>size in class AbstractCollection<QueryFunction>public void add(int index,
QueryFunction item)
add in interface List<QueryFunction>add in class AbstractList<QueryFunction>public void clear()
clear in interface Collection<QueryFunction>clear in interface List<QueryFunction>clear in class AbstractList<QueryFunction>public QueryFunction add(QueryFunctionOutput function)
QueryFunction instance.add in interface QueryFunctionCollectionfunction - The function to evaluate.QueryFunction instance.public QueryFunction remove(int index)
remove in interface List<QueryFunction>remove in class AbstractList<QueryFunction>public QueryFunction set(int index, QueryFunction item)
set in interface List<QueryFunction>set in class AbstractList<QueryFunction>public QueryFunction get(int index)
get in interface List<QueryFunction>get in class AbstractList<QueryFunction>public Network getNetwork()
Network that is the target for a Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).Copyright © 2021. All rights reserved.