All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sync.pds.solver.nodes.PopNode Maven / Gradle / Ivy

There is a newer version: 3.2.2
Show newest version
/**
 * ***************************************************************************** Copyright (c) 2018
 * Fraunhofer IEM, Paderborn, Germany. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * 

SPDX-License-Identifier: EPL-2.0 * *

Contributors: Johannes Spaeth - initial API and implementation * ***************************************************************************** */ package sync.pds.solver.nodes; import sync.pds.solver.SyncPDSSolver.PDSSystem; import wpds.interfaces.State; public class PopNode implements State { private PDSSystem system; private Location location; public PopNode(Location location, PDSSystem system) { this.system = system; this.location = location; } public PDSSystem system() { return system; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((location == null) ? 0 : location.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; PopNode other = (PopNode) obj; if (location == null) { if (other.location != null) return false; } else if (!location.equals(other.location)) return false; return true; } public Location location() { return location; } @Override public String toString() { return "Pop " + location(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy