ToolCommandFuntion.scala 554 Bytes
Newer Older
1
2
3
4
5
6
7
8
package nl.lumc.sasc.biopet.core

import nl.lumc.sasc.biopet.FullVersion

/**
 * Created by pjvanthof on 11/09/15.
 */
trait ToolCommandFuntion extends BiopetJavaCommandLineFunction {
Peter van 't Hof's avatar
Peter van 't Hof committed
9
10
  def toolObject: Object

11
  override def getVersion = Some("Biopet " + FullVersion)
Peter van 't Hof's avatar
Peter van 't Hof committed
12

Peter van 't Hof's avatar
Peter van 't Hof committed
13
14
15
16
17
  override def beforeGraph(): Unit = {
    javaMainClass = toolObject.getClass.getName.takeWhile(_ != '$')
    super.beforeGraph()
  }

Peter van 't Hof's avatar
Peter van 't Hof committed
18
  override def freezeFieldValues(): Unit = {
Peter van 't Hof's avatar
Peter van 't Hof committed
19
    javaMainClass = toolObject.getClass.getName.takeWhile(_ != '$')
Peter van 't Hof's avatar
Peter van 't Hof committed
20
21
    super.freezeFieldValues()
  }
22
}