|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.project.SchedulingBlockFilter
public class SchedulingBlockFilter
A filter that operates on scheduling blocks
.
Version Info:
$Revision: 1709 $ |
$Date: 2008-11-14 11:22:37 -0700 (Fri, 14 Nov 2008) $ |
$Author: dharland $ (last person to modify) |
Constructor Summary | |
---|---|
SchedulingBlockFilter()
Creates a new wide-open filter that allows all scheduling blocks to pass. |
Method Summary | |
---|---|
boolean |
allows(SchedulingBlock sb)
|
boolean |
blocks(SchedulingBlock sb)
|
void |
clearAll()
Sets this filter to a wide-open state. |
void |
clearExecStatuses()
Sets the execution status criterion into its wide-open state. |
Collection<SchedulingBlock> |
selectFrom(Collection<?> bag)
Selects those objects in bag that are scheduling blocks and that
can pass through this filter. |
void |
setExecStatuses(EventSetStatus... goodStatuses)
Sets the execution status criterion. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchedulingBlockFilter()
Method Detail |
---|
public void clearAll()
public void clearExecStatuses()
public void setExecStatuses(EventSetStatus... goodStatuses)
goodStatuses
- a list of execution statuses. Any scheduling block passing through
this filter must have one of these statuses.clearExecStatuses()
public boolean blocks(SchedulingBlock sb)
blocks
in interface Filter<SchedulingBlock>
public boolean allows(SchedulingBlock sb)
allows
in interface Filter<SchedulingBlock>
public Collection<SchedulingBlock> selectFrom(Collection<?> bag)
bag
that are scheduling blocks and that
can pass through this filter. The selections are added to a new collection
and returned. If the bag holds no such objects, the returned collection
will be empty.
The original collection (bag
) is not altered.
bag
- a collection of objects.
bag
that were able to
pass through this filter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |