Code Monkey home page Code Monkey logo

taskjuggler-template's Introduction

Task Juggler http://www.taskjuggler.org is a wonderful plain text based project management tool which can be used for:

  • Scheduling tasks and people (ah sorry resources).
  • Costing
  • Timesheets
  • Many more things

This project adds a small preprocessor in TCL (see http://wiki.tcl.tk) which can be used for automatically generating complicated plans. As an example you might want to have 37 sites installed each of which look roughly alike but have special properties, e.g.

  1. Every site requires land which takes between 6 and 12 months to acquire (randomly).
  2. Every site has a name and an installed size in kW. The installed size also effects the time to construct and the cost is a function of the size (not necessarily linear).
  3. Every site is connected by low voltage (lv) or high voltage (hv) which require different teams and have different plans.

So the main itch that is being scratched is how to automagically generate a taskjuggler project via a templating system which only makes sense for projects with lots of repeating/varying tasks (otherwise TaskJuggler macros etc will do the job)..

As a small example consider this fragment:

*set sites {
  *  {name A connect hv size 500}
  *  {name B connect lv size 1200}
  *  {name C connect hv size 100}
*}

resource hvt "HVT" { } 
resource lvt "LVT" { }

task land "Land Procurement" {
  chargeset land
  *foreach site $sites {
    *foreach {v k} $site {set $v $k} 
    $task land_$name "Land $name" { 
      !duration [between 6 12]m ;# 6..12 months
      allocate batman {alternative robin}
      !charge [expr 200*$size] onstart
    }
  *}
}

task mp_rollout "MP Rollout" {
  chargeset mprollout
  *foreach site $sites {
    *foreach {v k} $site {set $v $k}
    $ task site_$name "$name $connect $size" {
      depends land_$name

      *if {$connect eq "hv"} {
	task HV {
	  effort 3d
	  allocate hvt
	}
      *} elseif {$connect eq "lv"} {
	task LV {
	  effort 10d
	  allocate lvt
	}
      *} else {
	error "connect must be hv|lv for $name" }
      *}
    }
  *}
}

Have a look in the HTML/ directory in order to see the generated reports. This particular tool has been written by pjmaker in his spare time and been used to generate a plan for large PV rollout across the Northern Territory of Australia.All the commercial information has been removed but if you have some assistance on the reports etc I would take it as a kindness.

taskjuggler-template's People

Contributors

pjmaker avatar

Watchers

James Cloos avatar Willian Ver Valem Paiva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.