1// BEGIN LICENSE BLOCK
2// Version: CMPL 1.1
3//
4// The contents of this file are subject to the Cisco-style Mozilla Public
5// License Version 1.1 (the "License"); you may not use this file except
6// in compliance with the License.  You may obtain a copy of the License
7// at www.eclipse-clp.org/license.
8//
9// Software distributed under the License is distributed on an "AS IS"
10// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See
11// the License for the specific language governing rights and limitations
12// under the License.
13//
14// The Original Code is  CPViz Constraint Visualization System
15// The Initial Developer of the Original Code is  Helmut Simonis
16// Portions created by the Initial Developer are
17// Copyright (C) 2009-2010 Helmut Simonis
18//
19// Contributor(s): 	Helmut Simonis, 4C, Univerity College Cork, Cork
20//
21//
22// END LICENSE BLOCK
23// ----------------------------------------------------------------------
24package ie.ucc.cccc.viz;
25
26
27
28/**
29 * Class to hold failure description for visualizers.
30 * @author hsimonis
31 *
32 */
33public class VizFailed extends VizEntry {
34	private String group;
35	private int value;
36
37	@Override public String toString() {
38		return "Failed Index "+index+" Group "+group+" Value "+value;
39	}
40
41	/**
42	 * hold failure location information for a visualizer
43	 * @param index String, holds integer or list of integers
44	 * @param group String
45	 * @param value int, value which was assigned and led to failure
46	 */
47	public VizFailed(String index,String group,int value){
48		this.index = index;
49		this.group = group;
50		this.value = value;
51	}
52
53	public String getGroup() {
54		return group;
55	}
56
57	public int getValue(){
58		return value;
59	}
60
61	public FullDomain getDomainAsList(){
62		return new FullDomain();
63	}
64}
65