I don't really know anything about faces-pm. Just wondering. Can this solve general contrained problems? For example, scheduling speakers for rooms at a conference.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
defPYHS1():
title="Applied Quantum Mechanincs"length="1H"speaker="""Schrödinger"""defPYHS2():
title="Relativity And TimeTravelling"speaker="Einstein"length="1H 30M"defPHYS3():
title="Freewill and Relativity"speaker="Einstein"start=up.PYHS2.endlength="1H"defCPS1():
title="Tables are out"speaker="Date"length="1H"defCPS2():
title="The Psychology of an CPU"speaker="weinberg"length="1H"
project = BalancedProject(Scheduling)
class Gantt(gantt.Standard):
data = project
sharex = "share1"
class Report(report.Standard):
data = list(project)[1:]
def make_report(self, data):
for t in data:
yield (t.name, t.title, t.speaker, t.start, t.end, t.booked_resource)
class RoomLoad(resource.Standard):
data = project
sharex = "share1"
I don't really know anything about faces-pm. Just wondering. Can this solve general contrained problems? For example, scheduling speakers for rooms at a conference.
Here is small example you can try out:
-- coding: utf-8 --
from faces import *
from faces.lib import report
from faces.lib import gantt
from faces.lib import resource
class Room1(Resource):
pass
class Room2(Resource):
pass
class Room3(Resource):
pass
def Scheduling():
resource = Room1 | Room2 | Room3
speaker = ""
start = "2005-1-16"
project = BalancedProject(Scheduling)
class Gantt(gantt.Standard):
data = project
sharex = "share1"
class Report(report.Standard):
data = list(project)[1:]
class RoomLoad(resource.Standard):
data = project
sharex = "share1"
You can probably do this but keep in mind, faces is a project management tool. Maybe there is a tool in the web, that fits better.