org.jacop.examples.fd

## Class BreakingNews

• ```public class BreakingNews
extends ExampleFD```
It solves a simple logic puzzle about reporters breaking news stories.
Version:
4.9

Logic Puzzle : Breaking News.

The Daily Galaxy sent its four best reporters (Corey, Jimmy, Lois, and Perry) to different locations (Bayonne, New Hope, Port Charles, and South Amboy) to cover four breaking news events (30-pound baby, blimp launching, skyscraper dedication, and beached whale). Their editor is trying to remember where each of the reporters is. Can you match the name of each reporter with the place he or she was sent, and the event that each covered?

1. The 30-pound baby wasn't born in South Amboy or New Hope.

2. Jimmy didn't go to Port Charles.

3. The blimp launching and the skyscraper dedication were covered, in some order, by Lois and the reporter who was sent to Port Charles.

4. South Amboy was not the site of either the beached whale or the skyscraper dedication.

5. Bayonne is either the place that Corey went or the place where the whale was beached, or both.

Determine: Reporter -- Location -- Story

Author:
Marcin Chrapek, Miroslaw Klos, and Radoslaw Szymanek

• ### Fields inherited from class org.jacop.examples.fd.ExampleFD

`cost, search, store, vars`
• ### Constructor Summary

Constructors
Constructor and Description
`BreakingNews()`
• ### Method Summary

All Methods
Modifier and Type Method and Description
`static void` `main(String[] args)`
It executes the program to solve this logic puzzle.
`void` `model()`
It specifies a standard way of modeling the problem.
• ### Methods inherited from class org.jacop.examples.fd.ExampleFD

`creditSearch, getSearch, getSearchVariables, getStore, printMatrix, search, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch`
• ### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Constructor Detail

• #### BreakingNews

`public BreakingNews()`
• ### Method Detail

• #### model

`public void model()`
Description copied from class: `ExampleFD`
It specifies a standard way of modeling the problem.
Specified by:
`model` in class `ExampleFD`
• #### main

`public static void main(String[] args)`
It executes the program to solve this logic puzzle.
Parameters:
`args` - no arguments are read.