Package org.intermine.api.bag.operations
Class RelativeComplement
- java.lang.Object
-
- org.intermine.api.bag.operations.BagOperation
-
- org.intermine.api.bag.operations.RelativeComplement
-
- All Implemented Interfaces:
BagProducer
public class RelativeComplement extends BagOperation
- Author:
- Alex
-
-
Field Summary
-
Fields inherited from class org.intermine.api.bag.operations.BagOperation
LOG, model
-
-
Constructor Summary
Constructors Constructor Description RelativeComplement(Model model, Profile profile, java.util.Collection<InterMineBag> froms, java.util.Collection<InterMineBag> exclude)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectStoreBagCombination
combineBags()
java.lang.String
getNewBagType()
protected int
getOperationCode()
-
Methods inherited from class org.intermine.api.bag.operations.BagOperation
getBags, getClasses, getClassKeys, getNewBagName, getProfile, operate, setClassKeys, setNewBagName
-
-
-
-
Constructor Detail
-
RelativeComplement
public RelativeComplement(Model model, Profile profile, java.util.Collection<InterMineBag> froms, java.util.Collection<InterMineBag> exclude)
- Parameters:
model
- data modelprofile
- userprofilefroms
- base lists to use in operationexclude
- lists that contain objects to exclude from product list
-
-
Method Detail
-
getNewBagType
public java.lang.String getNewBagType() throws IncompatibleTypes
- Specified by:
getNewBagType
in classBagOperation
- Returns:
- new bag type
- Throws:
IncompatibleTypes
- if something goes wrong
-
combineBags
protected ObjectStoreBagCombination combineBags()
- Overrides:
combineBags
in classBagOperation
- Returns:
- combined list
-
getOperationCode
protected int getOperationCode()
- Specified by:
getOperationCode
in classBagOperation
- Returns:
- op code
-
-