/* * Created on Dec 6, 2004 */ package fr.lifl.stc.stan.samples.escape; import fr.lifl.stc.stan.signature.PartialSignature; public class EscapePartialSignature extends PartialSignature { final static long serialVersionUID = 0; public EscapePartialSignature (String i,short[] s){ super(i,new EscapePartialSignatureData(s)); } public boolean equals(Object o) { if(o == null || !(o instanceof EscapePartialSignature)) return false; EscapePartialSignatureData s1 = (EscapePartialSignatureData) sign; EscapePartialSignatureData s2 = (EscapePartialSignatureData) ((EscapePartialSignature)o).sign; return s1.equals(s2); } public boolean compatibleWith(PartialSignature ps) { return true; // performing approximation is meaningless } public void makeAccept(PartialSignature ps) { // nothing to do since thoses partial signatures are always compatible } }