Question: inputsimplified.pl : employee ( alice ) . employee ( bob ) . employee ( charlie ) . employee ( daniel ) . employee ( erica
inputsimplified.pl :
employeealice
employeebob
employeecharlie
employeedaniel
employeeerica
employeefrank
workstationplacelights,
workstationdecorateplace,
workstationmanageplace,
avoidworkstationbobplacelights
avoidworkstation : fail.
workstationidleevening
workstationidlenight
avoidshift : fail.
testing.pl:
testing.pl
Some predicates you can use to test the result of your project.
When querying plan you can include one of the predicates below as a goal.
planPlan noworkPlanPerson
This will succeed if you successfully generate a plan, but there is someone
that has not been assigned to a workstation.
worksat : fail.
worksatworkstationStation Workers Worker, Station :
memberWorker Workers
worksatT Worker, Station :
worksatT Worker, Station
worksatPlan Shift, Worker, Station
succeeds if Worker is assigned to
Station during Shift.
worksatplanMorning morning, Worker, Station :
worksatMorning Worker, Station
worksatplanEvening, evening, Worker, Station :
worksatEvening Worker, Station
worksatplanNight night, Worker, Station :
worksatNight Worker, Station
hasworkPlan Worker
Succeeds if Worker is assigned to
a workstation during some shift.
hasworkplanMorning Worker :
worksatMorning Worker,
hasworkplanEvening, Worker :
worksatEvening Worker,
hasworkplanNight Worker :
worksatNight Worker,
noworkPlan Worker
Succeeds if Worker is not assigned
to any workstation.
noworkPlan Worker :
employeeWorker
hasworkPlan Worker
doubleworkPlan Worker
Succeeds if Worker is assigned to
more than one workstation or shift.
doubleworkPlan Worker :
employeeWorker
worksatPlan Shift Worker, Station
worksatPlan Shift Worker, Station
differentworkShiftShiftStationStation
differentworkShiftShift : Shift Shift
differentworkStationStation : Station Station
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
