2010-06-15 12:43:46 +08:00
|
|
|
package org.broadinstitute.sting.queue.engine
|
|
|
|
|
|
2010-06-23 02:39:20 +08:00
|
|
|
import scala.collection.immutable.ListMap
|
|
|
|
|
|
2010-06-15 12:43:46 +08:00
|
|
|
/**
|
|
|
|
|
* Represents a state between QFunctions the directed acyclic QGraph
|
|
|
|
|
*/
|
2010-06-23 02:39:20 +08:00
|
|
|
case class QNode (private val items: Set[Any]) {
|
|
|
|
|
/**
|
|
|
|
|
* Used during QGraph error reporting.
|
|
|
|
|
* The EdgeFactory uses the valueMap to create new edges for the CycleDetector.
|
|
|
|
|
*/
|
|
|
|
|
def valueMap = {
|
|
|
|
|
var map = ListMap.empty[String, Any]
|
|
|
|
|
for (item <- items)
|
|
|
|
|
if (item != null)
|
|
|
|
|
map += item.toString -> item
|
|
|
|
|
map
|
|
|
|
|
}
|
|
|
|
|
}
|