com.googlecode.lightest.core
Interface IDispatcherAssignmentStrategy

All Known Implementing Classes:
QueuedDispatcherAssignmentStrategy, SimpleDispatcherAssignmentStrategy

public interface IDispatcherAssignmentStrategy


Method Summary
 boolean assign(LightestTestCase testcase)
          Assigns a dispatcher to a testcase, and the testcase to the dispatcher.
 void setDispatchers(List dispatchers)
          Sets the ITaskDispatchers this strategy is capable of assigning testcases to.
 void unassign(LightestTestCase testcase)
          Breaks the bi-directional association between a dispatcher and a testcase.
 

Method Detail

setDispatchers

void setDispatchers(List dispatchers)
Sets the ITaskDispatchers this strategy is capable of assigning testcases to.

Parameters:
dispatchers -

assign

boolean assign(LightestTestCase testcase)
Assigns a dispatcher to a testcase, and the testcase to the dispatcher. Returns true if the assignment was successful, and false otherwise.

Parameters:
testcase -

unassign

void unassign(LightestTestCase testcase)
Breaks the bi-directional association between a dispatcher and a testcase.

Parameters:
testcase -


Copyright © 2009. All Rights Reserved.