5748 |
19 Sep 11 |
nicklas |
1 |
/** |
5748 |
19 Sep 11 |
nicklas |
$Id$ |
5748 |
19 Sep 11 |
nicklas |
3 |
|
5748 |
19 Sep 11 |
nicklas |
Copyright (C) 2011 Nicklas Nordborg |
5748 |
19 Sep 11 |
nicklas |
5 |
|
5748 |
19 Sep 11 |
nicklas |
This file is part of BASE - BioArray Software Environment. |
5748 |
19 Sep 11 |
nicklas |
Available at http://base.thep.lu.se/ |
5748 |
19 Sep 11 |
nicklas |
8 |
|
5748 |
19 Sep 11 |
nicklas |
BASE is free software; you can redistribute it and/or |
5748 |
19 Sep 11 |
nicklas |
modify it under the terms of the GNU General Public License |
5748 |
19 Sep 11 |
nicklas |
as published by the Free Software Foundation; either version 3 |
5748 |
19 Sep 11 |
nicklas |
of the License, or (at your option) any later version. |
5748 |
19 Sep 11 |
nicklas |
13 |
|
5748 |
19 Sep 11 |
nicklas |
BASE is distributed in the hope that it will be useful, |
5748 |
19 Sep 11 |
nicklas |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
5748 |
19 Sep 11 |
nicklas |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5748 |
19 Sep 11 |
nicklas |
GNU General Public License for more details. |
5748 |
19 Sep 11 |
nicklas |
18 |
|
5748 |
19 Sep 11 |
nicklas |
You should have received a copy of the GNU General Public License |
5748 |
19 Sep 11 |
nicklas |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
5748 |
19 Sep 11 |
nicklas |
21 |
*/ |
5748 |
19 Sep 11 |
nicklas |
22 |
package net.sf.basedb.util.overview; |
5748 |
19 Sep 11 |
nicklas |
23 |
|
6455 |
09 May 14 |
nicklas |
24 |
import java.util.Set; |
6455 |
09 May 14 |
nicklas |
25 |
|
5748 |
19 Sep 11 |
nicklas |
26 |
import net.sf.basedb.core.Extract; |
5748 |
19 Sep 11 |
nicklas |
27 |
|
5748 |
19 Sep 11 |
nicklas |
28 |
/** |
5748 |
19 Sep 11 |
nicklas |
Defines per-node attributes that can be used to store |
5748 |
19 Sep 11 |
nicklas |
extra information together with a node that doesn't fit |
5748 |
19 Sep 11 |
nicklas |
the regular properties. |
5748 |
19 Sep 11 |
nicklas |
32 |
|
5748 |
19 Sep 11 |
nicklas |
@author Nicklas |
5748 |
19 Sep 11 |
nicklas |
@since 3.0 |
5748 |
19 Sep 11 |
nicklas |
@base.modified $Date$ |
5748 |
19 Sep 11 |
nicklas |
@see Node#setAttribute(NodeAttribute, Object) |
5748 |
19 Sep 11 |
nicklas |
@see Node#getAttribute(NodeAttribute) |
5748 |
19 Sep 11 |
nicklas |
38 |
*/ |
5748 |
19 Sep 11 |
nicklas |
39 |
public class NodeAttribute<T> |
5748 |
19 Sep 11 |
nicklas |
40 |
{ |
5748 |
19 Sep 11 |
nicklas |
41 |
|
5748 |
19 Sep 11 |
nicklas |
42 |
/** |
5748 |
19 Sep 11 |
nicklas |
Store a reference to an extract on a node. This is used when passing |
5748 |
19 Sep 11 |
nicklas |
a common part of the tree so that we later know which branch to follow. |
5748 |
19 Sep 11 |
nicklas |
Eg. when starting on a raw bioassay we should only follow the path with |
5748 |
19 Sep 11 |
nicklas |
the same extract from the physical bioassay as is on the raw bioassay. |
5748 |
19 Sep 11 |
nicklas |
47 |
*/ |
5748 |
19 Sep 11 |
nicklas |
48 |
public static NodeAttribute<Extract> EXTRACT = new NodeAttribute<Extract>(); |
6455 |
09 May 14 |
nicklas |
49 |
|
6455 |
09 May 14 |
nicklas |
50 |
/** |
6455 |
09 May 14 |
nicklas |
Store the ID values of extracts that should be followed on |
6455 |
09 May 14 |
nicklas |
upstream paths as long as the current extract is not among |
6455 |
09 May 14 |
nicklas |
one of the given parent extracts. |
6455 |
09 May 14 |
nicklas |
@since 3.3 |
6455 |
09 May 14 |
nicklas |
55 |
*/ |
6455 |
09 May 14 |
nicklas |
56 |
public static NodeAttribute<Set<Integer>> EXTRACT_PATH = new NodeAttribute<Set<Integer>>(); |
5748 |
19 Sep 11 |
nicklas |
57 |
|
5748 |
19 Sep 11 |
nicklas |
58 |
|
5748 |
19 Sep 11 |
nicklas |
59 |
} |