• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/usr/eclipseclp/Visualisation/src/com/parctechnologies/eclipse/visualisation/
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  The ECLiPSe Constraint Logic Programming System.
15// The Initial Developer of the Original Code is  Cisco Systems, Inc.
16// Portions created by the Initial Developer are
17// Copyright (C) 2006 Cisco Systems, Inc.  All Rights Reserved.
18//
19// Contributor(s):
20//
21// END LICENSE BLOCK
22
23package com.parctechnologies.eclipse.visualisation;
24
25import com.parctechnologies.eclipse.*;
26import java.util.*;
27
28
29public class BackUpdateEvent extends UpdateEvent
30{
31  static VisEvent parseFromCompoundTerm(CompoundTerm term)
32  {
33      String viewableName = ((Atom)term.arg(1)).functor();
34      String interestSpecName = ((Atom) term.arg(2)).functor();
35      List elementsUpdating = getIndiciesUpdating((List) term.arg(4));
36
37      return(new BackUpdateEvent(viewableName, interestSpecName,
38                                 elementsUpdating));
39  }
40
41  private BackUpdateEvent(String viewableName, String interestSpecName,
42                          List elementsUpdating)
43  {
44    setViewableName(viewableName);
45    setInterestSpecName(interestSpecName);
46    setElementsUpdating(elementsUpdating);
47  }
48
49  public String getDescription()
50  {
51    return("Backward update in viewable "+getViewableName()+".");
52  }
53
54}
55