| package org.eclipse.stem.core.predicate.impl; |
| |
| /******************************************************************************* |
| * Copyright (c) 2008 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.stem.core.graph.Graph; |
| import org.eclipse.stem.core.model.STEMTime; |
| import org.eclipse.stem.core.predicate.Not; |
| import org.eclipse.stem.core.predicate.PredicatePackage; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Not</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * </p> |
| * |
| * @generated |
| */ |
| public class NotImpl extends UnaryBooleanOperatorImpl implements Not { |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected NotImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return PredicatePackage.Literals.NOT; |
| } |
| |
| /** |
| * @see org.eclipse.stem.core.predicate.impl.PredicateImpl#evaluate(org.eclipse.stem.core.model.STEMTime, long, org.eclipse.stem.core.model.Decorator) |
| */ |
| @Override |
| public boolean evaluate(STEMTime time, long timerPeriod, Graph graph) { |
| return !getOperand().evaluate(time, timerPeriod, graph); |
| } |
| |
| |
| } //NotImpl |