Ejemplo n.º 1
0
    public override void link(ChainLinkData data)
    {
        if (!hasLinkedOnce)
        {
            DBUG(name + "] has never linked");
            base.link(data);
            prevParam = data.getData();
            return;
        }
        if (valve.isOpen(prevParam.Value, data.getData()))
        {
            DBUG(name + " valve open");
            base.link(data);
        }
        else
        {
            DBUG(name + " valve closed");
        }

        prevParam = data.getData();
    }