|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| IndexedAssignmentPolicy.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | /** | |
| 2 | * JTRunner is free software; you can redistribute it and/or modify it under the | |
| 3 | * terms of the GNU General Public License as published by the Free Software | |
| 4 | * Foundation; either version 2, or (at your option) any later version. | |
| 5 | */ | |
| 6 | ||
| 7 | package jtr.assigner.impl; | |
| 8 | ||
| 9 | import jtr.assigner.IAssignmentPolicy; | |
| 10 | import jtr.assigner.IParamsAssigner; | |
| 11 | ||
| 12 | /** | |
| 13 | * This class is the default implementation of the indexed parameters assignment | |
| 14 | * policy.<br> | |
| 15 | * It has to be used only to retrieve concrete <code>IParamsAssigner</code> | |
| 16 | * implementations providing an indexed parameters assignment policy. | |
| 17 | * | |
| 18 | * @author Francesco Russo (frusso@dev.java.net) | |
| 19 | * @version 4.0 | |
| 20 | * @since 1.0 | |
| 21 | */ | |
| 22 | public class IndexedAssignmentPolicy implements IAssignmentPolicy { | |
| 23 | /** | |
| 24 | * Default constructor. | |
| 25 | */ | |
| 26 | 8 | public IndexedAssignmentPolicy() { |
| 27 | } | |
| 28 | ||
| 29 | /** | |
| 30 | * Return the concrete <code>IParamsAssigner</code> implementation | |
| 31 | * providing an indexed parameters assignment policy. | |
| 32 | * | |
| 33 | * @return IParamsAssigner | |
| 34 | */ | |
| 35 | 8 | public IParamsAssigner getAssigner() { |
| 36 | 8 | return new IndexedParamsAssigner(); |
| 37 | } | |
| 38 | } |
|
||||||||||