Init() public abstract method

Initializes the visitor.
public abstract Init ( OpenXesNet.model.XLog log ) : void
log OpenXesNet.model.XLog The log to visit.
return void
Esempio n. 1
0
        public bool Accept(XVisitor visitor)
        {
            if (!visitor.Precondition())
            {
                return(false);
            }
            visitor.Init(this);
            visitor.VisitLogPre(this);
            foreach (XExtension ext in this.extensions)
            {
                ext.Accept(visitor, this);
            }

            foreach (IXEventClassifier classif in this.classifiers)
            {
                classif.Accept(visitor, this);
            }

            foreach (XAttribute attr in this.attributes.Values)
            {
                attr.Accept(visitor, this);
            }

            foreach (IXTrace trace in this)
            {
                trace.Accept(visitor, this);
            }

            visitor.VisitLogPost(this);
            return(true);
        }