Please refer to the Bootstrap JavaScript documentation for details about how to use the JavaScript components. Bootstrap UI components were written to be as compatible with Bootstrap 3 components as possible. Namely the following sections of Bootstrap docs apply:
QUnit Tests
- `$ grunt test` for testing in a headless browser Phantom JS.
- `$ grunt test-remote` for testing in a real browser. **Please append** `src/js/tests/` **to the URL** (typically `localhost:3000`) to view the QUnit test page. For testing on another device, replace `localhost` with your local IP address.
6.1 — CKEditor Loader
Initializes CKEditor WYSIWYG editor on the given <textarea>
element.
It does no more than run the $.ckeditor()
method. It is possible to initialize the editor with default or custom
options.
JavaScript Required
Usage
This loader only calls the jQuery plugin defined in CKEditor jQuery adapter with appropriate arguments.
If the lang
attribute is set on the
element the CKEditor is localized accordingly.
Data-API
If a <textarea>
HTML element has the attribute data-onload-ckeditor
defined, it will be initialized as a CKEditor
upon page load. The editor can be configured by the value passed to the attribute. If no value is passed, then CKEditor
is initiated with default configuration. If the value is a valid JSON, then it will be parsed and used as a
configuration object (see supported options in docs).
If the value is not a valid JSON, then it will be used as a path to an editor config file to be used (see custom config file
documentation).
Example
<textarea data-onload-ckeditor='{"language": "en"}'>Hi, I’m a textarea and I’m wearing a fancy CKEditor dress.</textarea>
6.2 — Confirmation
Attaches a confirmation dialog to be triggered by clicking on the element.
JavaScript Required
The message and confirmation button labels can be modified for each instance either by setting the options appropriately or by overriding the plugin default options which affects all instances on page.
Overriding Default Options Example
$(document).ready(function(){ // Localize confirmation messages into Czech $.fn.confirmation.Constructor.prototype.options = { 'confirm-message': 'Opravdu?', 'confirm-yes': 'Ano', 'confirm-no': 'Ne' }; });If overriding the default options while running the plugin in noConflict mode, the code above has to be modified by substituting `$.fn.confirmation.Constructor.prototype.options` with `$.fn.my_no_conflict_name.Constructor.prototype.options`.
Usage
Data-API
To bind confirmation dialog to an element, the element must have data-toggle="confirm"
attribute defined.
To override default options, you can use the same options as the JavaScript API prepended with data-
(i.e. data-confirm-yes="Oui"
).
Note that this component only supports <button>
elements.
JavaScript
Options
| Name | Type | Default | Description |
|---|---|---|---|
| confirm-message | string | Are you sure? | Optional. The message to be displayed to the user in the confirmation dialog. |
| confirm-yes | string | Yes | Optional. The text to be shown in the button that confirms the action. |
| confirm-no | string | No | Optional. The text to be shown in the button that confirms the action. |
Methods
$().showConfirmation()
Triggers a confirmation dialog on the given element.
Events
| Event Type | Description |
|---|---|
| show.bui.confirmation | Fired as soon as the confirmation dialog is displayed. |
| confirmed.bui.confirmation | Fired when user confirms the dialog. |
| rejected.bui.confirmation | Fired when user rejects the dialog. |
Example
<form onsubmit="alert('Confirmation confirmed');" method="get">
<button type="button" class="btn btn-danger" data-toggle="confirm">
Basic confirmation
</button>
<button
type="button"
class="btn btn-danger"
data-toggle="confirm"
data-confirm-message="Really?"
data-confirm-yes="Confirm"
data-confirm-no="Reject"
>
Confirmation with custom text
</button>
<button
type="button"
class="btn btn-danger"
data-toggle="confirm"
data-confirm-yes=""
data-confirm-no=""
>
Confirmation with icons
</button>
</form>
6.3 — Datetimepicker Loader
Initializes Bootstrap Datetimepicker by
Jonathan Peterson on the given form field. It does no more than run the
$.datetimepicker()
method with an optional configuration object as its argument.
JavaScript Required
Usage
This loader only calls the jQuery plugin defined in bootstrap-datetimepicker component.
If the lang
attribute is set on the
element the datetimepicker is localized accordingly.
Data-API
If an input group has the attribute data-onload-datetimepicker
defined, it will be initialized with a datetimepicker
upon page load. The picker can be configured by the value passed to the attribute. If no value is passed, the picker is
initiated with default configuration. If the value is a valid JSON, then it will be parsed and used as a configuration
object (see http://eonasdan.github.io/bootstrap-datetimepicker/Options for supported options).
Example

Default configuration

<input type="text" class="form-control" />

Custom format and localization

<input type="text" class="form-control" />

6.4 — Disable
Toggles the disabled property on DOM elements.
JavaScript Required
Usage
Data-API
To use an element as control element for toggling disable status on other elements, it must possess the
data-toggle="disable"
attribute. It also must define the data-disable-target
attribute that holds a string which,
when evaluated as a jQuery selector, returns a jQuery object referencing the elements that are to be disabled or
enabled.
By default the control element triggers the disable()
method on the JS event change
. This can be changed by
specifying the data-disable-event
attribute on the control element (i.e. data-disable-event="click"
).
JavaScript
Methods
$().toggle()
Toggles between enabled and disabled states.
Events
| Event Type | Description |
|---|---|
| toggle.bui.disable | Fired as soon as the disable function is called. |
| toggled.bui.disable | Fired when the disable function is finished. |
Example
<form>

<input type="checkbox" data-toggle="disable" data-disable-target=".js-delivery" />
Deliver to different address

<fieldset>
<legend>Delivery Address</legend>

Name
<input type="text" id="delivery_name" name="delivery[name]" class="form-control js-delivery" disabled />

Address
<input type="text" id="delivery_address" name="delivery[address]" class="form-control js-delivery" disabled />

City
<input type="text" id="delivery_city" name="delivery[city]" class="form-control js-delivery" disabled />

</fieldset>
</form>
6.5 — Filterable
Allows for filtering of elements matching a given jQuery selector. The elements that do not pass the filter are hidden until the filter is updated and their visibility is reevaluated.
Each element that is to be filterable must define on itself the appropriate data attributes by which it can be filtered. If a data attribute is not provided, the element is ignored by the filter for that particular condition and is treated as if it passed the filter.
The options to be passed to the Filterable plugin are always an array of filter definition objects. If using the
data-API, each of these objects has to be represented by a single :input
element with the appropriate data-*
attributes.
To allow users to view all filterable elements when using the data-API, simply place a button with type="reset"
attribute within the filter <form>
.
JavaScript Required
Usage
Data-API
The filter has to be a <form>
with a data-filter-target
attribute containing a string which, when evaluated as a
jQuery selector, returns a jQuery object holding the DOM elements to be filtered.
Each of the :input
elements of the form that are to be used for filtering have to define the data-toggle="filter"
attribute. Further each one also has to possess the data-filter-attrib
and data-filter-operator
attributes (see the
Filter Object section below).
To save the filter conditions to the browser session storage set the attribute data-filter-storage-id
.
This identifies the data in the context of the given host, domain and path combination. If the filter form changes
the filter data in session storage that are not applicable any more are silently ignored.
The element that is to reset the filter on click has to have the data-toggle="reset-filter"
attribute defined.
JavaScript
Filter Object
| Name | Type | Default | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| filter-attrib | string | Defines the name of the `data-` attribute of the filterable objects to use for filtering. | |||||||||||||||||||||||||||||||||||||||||
| filter-value | string | The filter value to be used in the condition. When using the data-api, this is automatically generated from the `:input` element value and does not not have to be set manually. | |||||||||||||||||||||||||||||||||||||||||
| filter-operator | enum |
Defines how to compare the values. If comparing strings or arrays of strings, we can use either
`subset` or `intersect` operators. For comparing numeric values, the `=`, `<`, `>`, `<=` and `>=` are
available.
|
|||||||||||||||||||||||||||||||||||||||||
| filter-strict | - | When `data-filter-strict` is present, both strings must be equal to produce a match. This differs from normal behavior where only part of the string can be used to get a match. Only applicable if `data-filter-operator` is set to intersect. |
Methods
$().filter(filterObjects)
Filters the set of elements on which it is called according to the given array of filter objects.
$().resetFilter()
Displays all filterable elements.
Events
| Event Type | Description |
|---|---|
| resetStart.bui.filterable | Fired as soon as the `reset` method is called. |
| resetEnd.bui.filterable | Fired as soon as the `reset` method is finished executing. |
| filter.bui.filterable | Fired when the `filter` method is called. |
| filtered.bui.filterable | Fired when the `filter` method is finished executing. |
Example
| # | User | Place of Birth | Cash | Residence | Countries Visited | Favorite Meal | Allergens |
|---|---|---|---|---|---|---|---|
| 1 | Brown, James | Prague | 10 | Philadelphia | China, Russia | Hamburger, Pizza, Spagethi | 1 |
| 2 | Paisley, Brad | Denver | 15 | Philadelphia | China, USA | Hamburger, Hotdog, Fries | 2 |
| 3 | Parker, Maceo | Munich | 8 | Toronto | USA, Russia, Denmark | Fries, Meatloaf | 3 |
| 4 | Cimrman, Jára | Liptákov | 25 | Vienna | China, Russia, Germany | Goulash | 1, 2, 13 |
| 5 | Smith, John | Munich | 17 | Sydney | Germany, Holland, Denmark | Meatloaf, Hotdog | 11 |
| 6 | Scholizin, Vladimir | Moscow | 5 | Philadelphia | USA | Pizza, Goulash | 12 |
| 7 | Wesley, Fred | Denver | 0 | Toronto | Germany, Russia, Denmark | Pizza, Hotdog | 13 |

<form class="form-filter offset-bottom" data-filter-target="#people tr" data-filter-storage-id="filterable-example">

Place of Birth
<select
class="form-control"
data-toggle="filter"
data-filter-attrib="birth-place"
data-filter-operator="intersect"
>
<option value="">All</option>
<option value="Denver">Denver</option>
<option value="Liptákov">Liptákov</option>
<option value="Moscow">Moscow</option>
<option value="Munich">Munich</option>
<option value="Prague">Prague</option>
<option value="Vienna">Vienna</option>
</select>

Cash under
<input
type="text"
class="form-control"
data-toggle="filter"
data-filter-attrib="cash"
data-filter-operator="<"
>

Cash over
<input
type="text"
class="form-control"
data-toggle="filter"
data-filter-attrib="cash"
data-filter-operator=">"
>

Allergens
<input
type="text"
class="form-control"
data-toggle="filter"
data-filter-attrib="allergens"
data-filter-operator="intersect"
data-filter-strict
>

Country visited
<select
class="form-control"
data-toggle="filter"
data-filter-attrib="countries-visited"
data-filter-operator="intersect"
multiple
>
<option value="">Any</option>
<option value="China">China</option>
<option value="Denmark">Denmark</option>
<option value="Germany">Germany</option>
<option value="Holland">Holland</option>
<option value="Russia">Russia</option>
<option value="USA">USA</option>
</select>

Residence
<select
class="form-control"
data-toggle="filter"
data-filter-attrib="residence"
data-filter-operator="intersect"
multiple
>
<option value="Denver">Denver</option>
<option value="Philadelphia">Philadelphia</option>
<option value="Sydney">Sydney</option>
<option value="Toronto">Toronto</option>
<option value="Vienna">Vienna</option>
</select>

Favorite meal
<select
class="form-control"
data-toggle="filter"
data-filter-attrib="favorite-meal"
data-filter-operator="subset"
multiple
>
<option value="Fries">Fries</option>
<option value="Goulash">Goulash</option>
<option value="Hamburger">Hamburger</option>
<option value="Hotdog">Hotdog</option>
<option value="Meatloaf">Meatloaf</option>
<option value="Pizza">Pizza</option>
<option value="Spagethi">Spagethi</option>
</select>

<button
type="reset"
class="btn btn-default"
data-toggle="filter-reset"
>
Reset Filter
</button>

</form>

#
User
Place of Birth
Cash
Residence
Countries Visited
Favorite Meal
Allergens

1
Brown, James
Prague
10
Philadelphia
China, Russia
Hamburger, Pizza, Spagethi
1

2
Paisley, Brad
Denver
15
Philadelphia
China, USA
Hamburger, Hotdog, Fries
2

3
Parker, Maceo
Munich
8
Toronto
USA, Russia, Denmark
Fries, Meatloaf
3

4
Cimrman, Jára
Liptákov
25
Vienna
China, Russia, Germany
Goulash
1, 2, 13

5
Smith, John
Munich
17
Sydney
Germany, Holland, Denmark
Meatloaf, Hotdog
11

6
Scholizin, Vladimir
Moscow
5
Philadelphia
USA
Pizza, Goulash
12

7
Wesley, Fred
Denver
0
Toronto
Germany, Russia, Denmark
Pizza, Hotdog
13

6.6 — Select2 Loader
Initializes select2 on the given <select>
element.
It does no more than run the $.select2()
method. It is possible to initialize the widget with default or custom
options.
JavaScript Required
Usage
This loader only calls the jQuery plugin defined in the select2 library with appropriate arguments.
The select2 component natively uses the lang
attribute of any parent element, so just be sure to include the correct locale file.
Data-API
If a <select>
element has the attribute data-onload-select2
defined, it will be initialized as a select2 upon page
load. The widget can be configured by the value passed to the attribute. If no value is passed, then select2 is
initiated with default configuration. If a JSON object is passed, then it will be parsed and used as a configuration
object (see https://select2.github.io/options.html for supported options).
6.6.1 — Single Selection
Example
<select class="form-control" data-onload-select2='{"minimumResultsForSearch": "Infinity"}'>
<option
selected
value="flag-czech"
data-image-src="//satyr.io/32x16?flag=cze"
data-image-srcset="//satyr.io/32x16?flag=cze, //satyr.io/64x32?flag=cze 2x"
data-image-width="32"
data-image-height="16"
>Czech</option>
<option
value="flag-canada"
data-image-src="//satyr.io/32x16?flag=can"
data-image-srcset="//satyr.io/32x16?flag=can, //satyr.io/64x32?flag=can 2x"
data-image-width="32"
data-image-height="16"
>Canadian</option>
<option
data-image-src="//satyr.io/32x16?flag=che"
data-image-srcset="//satyr.io/32x16?flag=che, //satyr.io/64x32?flag=che 2x"
data-image-width="32"
data-image-height="16"
>Swiss</option>
</select>
6.6.2 — Multiple Selection
Example
<select class="form-control" multiple data-onload-select2='{"minimumResultsForSearch": "Infinity"}'>
<option
selected
data-image-src="//satyr.io/40x40/forestgreen"
data-image-width="40"
data-image-height="40"
>Forest green</option>
<option
selected
data-image-src="//satyr.io/40x40/crimson"
data-image-width="40"
data-image-height="40"
>Crimson</option>
<option
data-image-src="//satyr.io/40x40/steelblue"
data-image-width="40"
data-image-height="40"
>Steel blue</option>
</select>
6.7 — Slugger
Creates a slug in one HTML form element based on a value in another. The relationship is unidirectional in the sense that changes made to the source element affect the target element, but not vice versa.
JavaScript Required
Usage
Data-API
To make this component function there must be two HTML form elements. One is the source where the user types text and the other is the target where the slugger dynamically generates the slug.
Two attributes have to be defined on the source element:
data-toggle="slugger"
indicates that the element’s value will be used as the string from which the slug is to be generated.data-slugger-target="#id-of-the-target-element"
defines the jQuery selector of the HTML form element where the generated slug is to be displayed.
JavaScript
Options
| Name | Type | Default | Description |
|---|---|---|---|
| target | jQuery HTML element collection | The element(s) where the slug should be displayed |
Methods
$().updateSlug()
Sets slug generated as the value of the target element based on the value of the source element.
Events
| Event Type | Description |
|---|---|
| updated.bui.slugger | Fired when user changes the value of the source element and the slug gets updated. |
| changed.bui.slugger | Fired when the source element loses focus after a change. |
Example

Source
<input type="text" class="form-control" data-toggle="slugger" data-slugger-target="#slugger-target" />

Target
<input type="text" class="form-control" id="slugger-target" />

6.8 — Sortable Table
Provides client-side sorting functionality. If browser supports language argument to the
String.prototype.localeCompare()
function, the ordering will be locale aware.
If the argument is not supported or if the supplied argument is not a valid locale the ordering will not be locale aware.
To ensure keyboard accessibility, remember to add tabindex="0"
to all sortable column headers.
If a given cell has the attribute data-sort-value="someValue"
specified, the value of this element is used as
opposed to the value of the cell.
To initialize the component taking into account that the data is already sorted when the page is loaded,
a .sorting-asc
and .sorting-desc
can be added to the relevant
to indicate the column and direction of the
default sorting.
JavaScript Required
Component Dependency
Usage
Data-API
To use sortable-table via data-API, data-toggle="sort"
has to be defined on the
that should trigger sorting on
click.
In order to utilize the navigation feature, data-sort-navigation
has to be defined on the

element and it
must contain a string that, when evaluated as a jQuery selector, will return a jQuery object referencing the navigation
container DOM element.
Forcing sorting of a given table on page load (and potentially generating group headers and navigation) can be achieved
by specifying the attribute data-sort-onload
on the appropriate
. This attribute takes the value of either asc
or desc
to indicate the sorting order.
JavaScript
Options
| Name | Type | Default | Description | |
|---|---|---|---|---|
| sorted-th | string | Mandatory. A jQuery object with reference to the ` | ` DOM element in the column by which we are to sort the table. | |
| sort-direction | string | If the column is already sorted it defaults to the reverse order. If it is not sorted, it defaults to `asc`. | Optional. Defines the direction by which to sort. Accepts values `asc` or `desc`. | |
| sort-navigation | jQuery object | Optional. A jQuery object with reference to the DOM element where the group quick links are to appear. The elements are grouped according to the value of th `data-sort-group="someValue"` attribute of each cell. For this to work correctly, all cells in a given column either must or must not posses the `data-sort-group` attribute. |
Methods
$().sortableTable(options)
Initiates a sortable table if needed and performs the sorting according to the options object.
Events
| Event Type | Description |
|---|---|
| sort.bui.sortableTable | Fired as soon as the `sort` method is called. |
| sorted.bui.sortableTable | Fired as soon as the `sort` method is finished executing. |
6.8.1 — Sortable Table Simple
Example

#
Page Title

1
Hotforwords Can Explain Lorem Ipsum far better than I can

2
Seas spirit morning, fill seasons every I wherein kind

3
Cattle she’d of herb third

6.8.2 — Sortable Table with Navigation
Table with automatically generated header sections and letter navigation.
Example
| # | User |
|---|---|
| 1 | Brown, James |
| 2 | Paisley, Brad |
| 3 | Parker, Maceo |
| 4 | Wesley, Fred |

#
User

1
Brown, James

2
Paisley, Brad

3
Parker, Maceo

4
Wesley, Fred


Package algorithms.imageProcessing
Class AbstractWaterShed
- java.lang.Object
-
- algorithms.imageProcessing.AbstractWaterShed
-
- Direct Known Subclasses:
WaterShed
,WaterShedForPoints
public abstract class AbstractWaterShed extends java.lang.Object
A watershed algorithm for use in image segmentation that is based upon the algorithms described inRoerdink and Meijster 2001 "The Watershed Transform: Definitions, Algorithms and Parallelization Strategies", Fundamenta Informaticae 41 (2001) 187–228, Section 4.2.4 and Meijster and Roerdink (1998?), "A Disjoint Set Algorihm for the Watershed Transform" http://www.researchgate.net/publication/2407714_A_Disjoint_Set_Algorithm_For_The_Watershed_Transform Note the above authors credit the 2 Disjoint Set methods, especially the disjoint set path compression, used in the watershed union find to Tarjan, R. E. Data Structures and Network Algorithms. SIAM, 1983. Those are not yet implemented strictly as suggested here. Instead, the current implementation for disjoint sets follows "Introduction to Algorithms" by Cormen et al. which include improvements suggested by Tarjan too. Notes on parallelization are in Section 5 of Roerdink and Meijster 2001.
The image is first transformed into a lower complete image and then the watershed is computed.- Author:
- nichole
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractWaterShed.ResolveState
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<algorithms.util.PairInt,algorithms.disjointSets.DisjointSet2Node<algorithms.util.PairInt>>
componentLabelMap
a map with key = PairInt(x, y) and value = disjoint set of the level components (contiguous pixels of same intensity) whose set parent is the representative for that level (which may be a regional minima).protected java.util.Set<algorithms.util.PairInt>
regionalMinima
a set of points found as the regional minima.protected static algorithms.util.PairInt
sentinel
protected static java.lang.Integer
sentinelInt
-
Constructor Summary
Constructors Constructor Description AbstractWaterShed()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addToResults(algorithms.util.PairInt resolved, AbstractWaterShed.ResolveState rs, java.util.Map<java.lang.String,java.util.Set<algorithms.util.PairInt>> resultsMap)
protected void
addToResults(java.lang.String key, algorithms.util.PairInt resolved, java.util.Map<java.lang.String,java.util.Set<algorithms.util.PairInt>> resultsMap)
protected AbstractWaterShed.ResolveState
addToStack(int level, algorithms.util.PairInt p, int i, AbstractWaterShed.ResolveState invokedFrom, int invokedFromI, boolean isRecursionBase, java.util.Stack<AbstractWaterShed.ResolveState> stack)
protected java.lang.String
createKey(int level, algorithms.util.PairInt p, int i)
protected java.lang.String
createRootKey(int level, algorithms.util.PairInt p)
protected algorithms.util.PairInt
findResult(AbstractWaterShed.ResolveState rs, java.util.Map<java.lang.String,java.util.Set<algorithms.util.PairInt>> resultsMap)
look for more than one result in the "root" key and if found, return the sentinel (note that the invoker is responsible for sentinel state logic), else get the specific key value from the resultsMap and remove it while at it and return it.protected algorithms.util.PairInt
findResult(algorithms.util.PairInt p, int level, int i, java.util.Map<java.lang.String,java.util.Set<algorithms.util.PairInt>> resultsMap)
look for more than one result in the "root" key and if found, return the sentinel (note that the invoker is responsible for sentinel state logic), else get the specific key value from the resultsMap and remove it while at it and return it.protected algorithms.util.PairInt
findRootResult(algorithms.util.PairInt p, java.util.Map<java.lang.String,java.util.Set<algorithms.util.PairInt>> resultsMap)
look for more than one result in the "root" key and if found, return the sentinel (note that the invoker is responsible for sentinel state logic), else get the specific key value from the resultsMap and remove it while at it and return it.java.util.Set<algorithms.util.PairInt>
getRegionalMinima()
protected algorithms.util.PairInt
resolve(algorithms.util.PairInt p, CustomWatershedDAG dag)
protected algorithms.util.PairInt
resolveIterative(algorithms.util.PairInt p, CustomWatershedDAG dag)
-
-
-
Field Detail
-
sentinel
protected static final algorithms.util.PairInt sentinel
-
sentinelInt
protected static final java.lang.Integer sentinelInt
-
regionalMinima
protected java.util.Set<algorithms.util.PairInt> regionalMinima
a set of points found as the regional minima. This is populated by the method named lower.
-
componentLabelMap
protected java.util.Map<algorithms.util.PairInt,algorithms.disjointSets.DisjointSet2Node<algorithms.util.PairInt>> componentLabelMap
a map with key = PairInt(x, y) and value = disjoint set of the level components (contiguous pixels of same intensity) whose set parent is the representative for that level (which may be a regional minima). This is populated by the method named unionFindComponentLabelling.
-
-
Method Detail
-
getRegionalMinima
public java.util.Set<algorithms.util.PairInt> getRegionalMinima()
-
resolve
protected algorithms.util.PairInt resolve(algorithms.util.PairInt p, CustomWatershedDAG dag)
- Parameters:
p
-dag
-- Returns:
- repr value indicating whether the point is a watershed (indicated by returning the sentinel) or should be assigned the component level of the returned point.
-
resolveIterative
protected algorithms.util.PairInt resolveIterative(algorithms.util.PairInt p, CustomWatershedDAG dag)
- Parameters:
p
-dag
-- Returns:
- repr value indicating whether the point is a watershed (indicated by returning the sentinel) or should be assigned the component level of the returned point.
-
createKey
protected java.lang.String createKey(int level, algorithms.util.PairInt p, int i)
-
createRootKey
protected java.lang.String createRootKey(int level, algorithms.util.PairInt p)
-
addToStack
protected AbstractWaterShed.ResolveState addToStack(int level, algorithms.util.PairInt p, int i, AbstractWaterShed.ResolveState invokedFrom, int invokedFromI, boolean isRecursionBase, java.util.Stack<AbstractWaterShed.ResolveState> stack)
-
addToResults
protected void addToResults(algorithms.util.PairInt resolved, AbstractWaterShed.ResolveState rs, java.util.Map<java.lang.String,java.util.Set<algorithms.util.PairInt>> resultsMap)
-
findResult
protected algorithms.util.PairInt findResult(AbstractWaterShed.ResolveState rs, java.util.Map<java.lang.String,java.util.Set<algorithms.util.PairInt>> resultsMap)
look for more than one result in the "root" key and if found, return the sentinel (note that the invoker is responsible for sentinel state logic), else get the specific key value from the resultsMap and remove it while at it and return it.- Parameters:
rs
-resultsMap
-- Returns:
-
findResult
protected algorithms.util.PairInt findResult(algorithms.util.PairInt p, int level, int i, java.util.Map<java.lang.String,java.util.Set<algorithms.util.PairInt>> resultsMap)
look for more than one result in the "root" key and if found, return the sentinel (note that the invoker is responsible for sentinel state logic), else get the specific key value from the resultsMap and remove it while at it and return it.- Parameters:
p
-level
-i
-resultsMap
-- Returns:
-
findRootResult
protected algorithms.util.PairInt findRootResult(algorithms.util.PairInt p, java.util.Map<java.lang.String,java.util.Set<algorithms.util.PairInt>> resultsMap)
look for more than one result in the "root" key and if found, return the sentinel (note that the invoker is responsible for sentinel state logic), else get the specific key value from the resultsMap and remove it while at it and return it.- Parameters:
resultsMap
-- Returns:
-
addToResults
protected void addToResults(java.lang.String key, algorithms.util.PairInt resolved, java.util.Map<java.lang.String,java.util.Set<algorithms.util.PairInt>> resultsMap)
-
-


☰
Topseed™ Polymer
Dashboard
Circle
Gauge
Prelist
List
☰ Topseed™ Webcomps
Dashboard
Circle
Gauge
Prelist
List
Show how event in c1-el affects c2-el.


With marijuana becoming legalized more throughout the nation for medical use, we wanted to be able to provide patients the benefits of cannabis to help them switch from pharmaceuticals to medical marijuana.


[gecode-users] BAB, constrain() and redundant cost constraints
Guido Tack
tack at ps.uni-sb.de
Sat Apr 14 21:43:45 CEST 2007
Hi!
Peter Tiedemann wrote:
> This seems to be done by for example posting a linear constraint to
> enforce a better a cost on the next solution. My question is simply
> this: Isnt it true that these added constraints will accumulate
> instead of replacing each other ( which is possible since each should
> be tighter than the previous)?
In principle, this could happen, because you can post arbitrary
propagators in the "constrain" function.
> Ie, you start by adding ax < 10, then find a solution with cost 9, and
> add ax < 9, but leaving the propagator for ax < 10 alive. I realize
> this will only add up to at most the number of variables propagators,
> but i just want to make sure i am not missing something here :)
You usually work around this problem by adding another variable (say
"y") to your model, adding the constraint "ax < y" to your model, and
then just adding constraints "y < 10", "y<9" and so on during branch
and bound. These constraints are not represented as propagators, but
just immediately shrink the variable's domain.
I think this model fits for most objective functions, but I would be
very interested in an application where you can't avoid posting more
and more real propagators during branch and bound.
Cheers,
Guido
More information about the gecode-users
mailing list


--- layout: page title: About header-img: "img/about-bg.png" ---
After 20 years of working in and running several successful bars and restaurants in different States, this coding newbie is ready for something new. A seasoned traveler, he currently lives in Eastern MA.


Close
Edit profile
Darth Vader
2410
@darthvader
core
mvp
admin
hq
c-trib
Activity in threads you participated in
Allow user to change site design
Reply by Dennis Aaen 7 minutes ago
Frontend
Allow user to change site design
Reply by Dennis Aaen 7 minutes ago
Frontend
Allow user to change site design
Reply by Dennis Aaen 7 minutes ago
Frontend
Our Umbraco
Forum
Packages
Docs
Download
Contribute
4
Profile
Avatar
Name
Email
Password
Company
Bio
Twitter Alias
Location
Packages
Create package
Existing
Contributions
Following
View followed threads
Change your profile
Avatar
Change image
Username
E-mail
Password
Confirm
Bio
Twitter
Location
Changes saved


This is a primary alert =check it out!
This is a warning alert =check it out!
This is a danger alert =check it out!


CSUB
Home
(current)
Create Course
View Courses
Add Administrator
Add Student
Logout
You Have Been Logged Out
User Name :
Password:
Invalid username and password.


City
Raining
00 °C
Humidity
Pressure
Wind Speed
Change Location
Weather App || Developed By
Md. Asaduzzaman Rana
Change Location
×
City
Enter Your City Here


|
Lulu P/XP colony simulator
|
#include "lulu.h"
#include "instance.h"
#include "debug_print.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Macros | |
| #define | PCOL_SIM |
Functions | |
| char * | printMultisetEnv (multiset_env_t *multiset) |
| char * | printMultisetObj (multiset_obj_t *multiset) |
| char * | printProgram (Program_t *program) |
| void | printColonyState (Pcolony_t *pcol, bool with_programs) |
| int | main (int argc, char **argv) |
| #define PCOL_SIM |
Definition at line 3 of file simulator.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 70 of file simulator.c.
Definition at line 54 of file simulator.c.
| char* printMultisetEnv | ( | multiset_env_t * | multiset | ) |
Definition at line 14 of file simulator.c.
| char* printMultisetObj | ( | multiset_obj_t * | multiset | ) |
Definition at line 22 of file simulator.c.
| char* printProgram | ( | Program_t * | program | ) |
Definition at line 30 of file simulator.c.


Lonely, he made a companion of string and wood and tin, and sat her at his window, as if she were looking out. And whenever he returned from tiresome jaunts, she was there, framed in the window, to welcome him home.
But when he was at home, she had her back turned to him. She was facing the outside world, immobile, yet desperate to go frolicking dizzily into that world, where other things of string and wood and tin were surely to be found.


Segment is required.
Service Type is required.
Request Title is required.
Request Description is required.
Request Priority is required.
Request Criticality is required.
Requestor Name is required.
Requestor Email is required.


Family renews appeal for tips in Lower Mainland after Terrace man killed in hit-and-run
Suspects and witnesses are believed to be Lower Mainland residents
by Natalia BalcerzakThe family of a Terrace man killed in a hit-and-run last November are renewing their appeal for more information as they look for closure.
Cameron Kerr, 30, was struck and killed by a vehicle in the early morning hours of Nov. 18, 2018 while walking eastward on Hwy 16 toward Terrace from New Remo.
The Kerr family made two public appeals last year, pleading for the driver and witnesses to come forward. RCMP identified a primary suspect from the Lower Mainland but did not have enough evidence to pursue charges.
This time they’ll be taping an appeal at the Terrace RCMP detachment for release on Nov. 18, the anniversary date of Cameron’s death.
READ MORE: Family of Cameron Kerr makes second public appeal
Sgt. Shawn McLaughlin, from RCMP’s West Pacific Region Traffic Services, said during the Kerr family’s second appeal on Dec. 19, 2018, that the case has all the complexities of a homicide investigation and multiple RCMP agencies were involved.
RCMP said they were confident that more than one person was involved in the Nov. 18, 2018 hit-and-run, where Kerr was struck and killed by an oncoming pickup truck at high speed sometime between 3 a.m. and 7 a.m. His body was found in the ditch by a member of the public around noon the same day.
READ MORE: Search resumes for evidence in hit and run death of Cameron Kerr
Cameron’s family said during their second appeal last year that the silence from potential witnesses was denying them the chance to come to terms with his death.
Cameron was well known in paddling and other outdoor recreation communities throughout the Northwest. A former member of the Terrace River Kings hockey team and a tradesman by profession, he is remembered by family and friends as a kind and generous individual, and an important part of the community.
READ MORE: Terrace River Kings hold tribute for Cameron Kerr
Police are asking anyone with information and who has not already spoken with police to call Sgt. Shawn McLaughlin with West Pacific Region Traffic Services at<PHONE_NUMBER> or, if you wish to remain anonymous, call Crime Stoppers at 1-800-222-8477 (TIPS).


Close
About
Experience
Education
Projects
Skills
Contact
Arnab Mukherjee
Interested in Software Engineering
Download Resume
About Me
Experience
Google
Software engineer intern
Facebook (Meta)
Network engineer intern
Education
National Institute of Technology,Durgapur
2019 - 2023(Expected)
Bachelor of Technology in Computer Science
8.54 CGPA (Upto 7th Sem)
Vidyasagar Shishu Niketan
2019
ISC
90.6% (Science)
Vidyasagar Shishu Niketan
2017
ICSE
93.6%
Projects
Distributed Hash Table
Implemented a Highly Scaleable P2P Distributed Hash Table.
Used techniques to make it tolerant to peer churns.
Used Chord as underlying algorithm.
View Project
Image to Paragraph generation using Visual Attention
Developed a model that could generate a relevant paragraph by using an image as context.
Used Attention Model to understand different parts of the image.
Combined it with a self trained Language Model to generate a meaningful paragraph.
View Project
Low Light Image Enhancement
Implemented a model that achieved >30 PSNR when trying to produce a bright and enhanced image from a low light image.
Used a multi branch fusion model to apply enhancement via multiple subnets.
Used a combined loss function that gave more emphasis to dark regions to reduce noise while enhancing the image.
View Project
Predicting CPU usage in Cloud VMs
Developed a model to preemptively calculate future CPU utilization with <1.1% error.
Compared the performance of LSTM, GRU and Independent RNN models.
View Project
Message dependent Image Steganography
Implemented an advanced steganographic technique that is an improvement over traditional methods.
Used payload to determine embedding positions on the image.
View Project
Skills
Java
Python
C
C++
Typescript
Springboot
React JS
Node JS
Flask
JavaScript
HTML
CSS
Bootstrap
Databases
TensorFlow
NLTK
Scikit-Learn
Socket.IO
GNU Octave
Git
Get in Touch
Send


View your digital assets in a streamlined and easy-to-use interface.
Portfolio
Stay on top of your digital asset value with our new Portfolio module.
Blockchain News
Your launchpad to the latest aggregated news.
Market Data
Price moves, market caps and trends at your fingertips.
Block Explorers
Track raw balance and transaction data across multiple blockchains.
Explore our full list of features.
Jaxx Liberty is a free service that has no sign-up, conducts no registration, and requires no personal information to access your digital assets.
WHY USE DECENTRAL'S JAXX LIBERTY
Jaxx Liberty is built on the success of Jaxx, one of the world's most popular blockchain and digital asset wallets.
Our wallets have been downloaded millions of times and have a proven track record.
Jaxx Liberty is cross-platform, built for Android and iOS devices, Mac OS X, Windows, and Linux desktops, and is available as a Chrome browser extension.
Enjoy support for more than 85 digital assets and cryptocurrencies, and dozens of fiat reference points.
Get started with an industry-standard 12-word backup phrase that is portable to and from other wallets.
Sensitive information like your backup phrase and private keys are never stored anywhere but your device. You control them. We can’t even access them.
An improved new security model protects your sensitive information with a strong password, using AES-256 encryption enhanced by 5000 rounds of pbkdf2 password hashing.
Hierarchical Deterministic (HD) wallet support further safeguards your privacy rights wherever feasible.
Third-party apps like ShapeShift add seamless peer-to-peer exchange between supported assets.
QR code support simplifies in-person transactions.
Customized mining fees using a proprietary new algorithm let you tailor how you transact.
Connect by email or social media with free, world-class support from our user success team, available 24/7.
Reclaim Your Liberty
You’re in control. Download Jaxx Liberty. It’s free.


Anthony Migyanka
Home
(current)
Resumè
(current)
Timeline
(current)
Presentation
(current)
Copyright © 2018 · All Rights Reserved · Anthony Migyanka


Education Through Entertainment for Kids of All Ages
For more info<EMAIL_ADDRESS>Our First Book On Sale Fall 2016!
Welcome to Brookland Adventures!
We are excited and proud to announce the launch of Brookland Explorer's Kids' Club and Brookland Explorer Kids magazine! ..................... As a member of the Brookland Explorer's Club, children receive an activity box by mail once a month. These activity boxes give children a hands-on opportunity to learn about the environmental issues our characters teach. ..................... In our first issue of Brookland Explorer's Kids, come along with Gwen, the Blue Fairy, as she learns about Brookland's water supply. Each edition of our magazine offers key facts and information about conservation, as well as an enchanting story featuring our characters and fun games and puzzles! ..................... Our goal at Brookland Adventures is to create innovative content with conscience. With our stories centered on a core message of sustainability, and featuring charming and appealing characters, we hope our series provides the spark to inspire conscientious environmental change in children of all ages. ..................... For more information please contact jenna@brooklandadventures.com


Application Maintenance Assistant (AMA)
NANT Project file :
Please select on the dropdown lists below a system and a target operation to execute on it. Please carfully review and complete if needed the generated command before executing it. A trace file will be generated in the log folder. You can also copy past the generated command in a DOS prompt, or schedule it using Windows tasks scheduler.
Click on the run button below to execute, the log file will be named :
Sylvain Le Courtois / May 2017 / Press F5 to refresh


Gus hid in the long grass to the left of the rusted cannon. Blankets of fog crept up on him from the flat lands that led to the hills. He had fled from a goblin that had hunted him in the rocks upon Bonnet Cliff. Suddenly he felt a strong tug on his leg. The goblin was upon him! It cast a spell, and with a sudden blast, Gus was a rabbit.
in-context