package protocols.NEC;

import protocols.ProtocolSpecification;
import protocols.frame.FrameBitImpl;

/**
 * Created by piotrek on 06.02.17.
 */
public class NECProtocolSpecScaled extends ProtocolSpecification {

    private static final ProtocolSpecification metric =
            NecProtocolSpecification.getInstance();

    public NECProtocolSpecScaled(int scale) {
        super(
            metric.getStateShortTime()/scale,
            metric.getStateLongTime()/scale,
            metric.getCommandLen(),
            metric.getAddressLen(),
            metric.getPrefixPauseTime()/scale,
            metric.getSufixPauseTime()/scale,
            FrameBitImpl.vectorScalarDiv(metric.getPreamble(), scale),
            FrameBitImpl.vectorScalarDiv(metric.getPostamble(),scale),
            metric.getProtocolType()
        );
    }

}
