com.geotab.model.entity.controller.BrpFaultController Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.model.entity.controller;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.geotab.model.entity.source.SourceBrp;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* Controller reserved for faults generated with manufacturer specific codes.
*/
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public final class BrpFaultController extends Controller {
private static class InstanceHolder {
private static final BrpFaultController INSTANCE = new BrpFaultController();
}
public static final String BRP_FAULT_CONTROLLER_ID = "ControllerBrpFaultId";
private BrpFaultController() {
super(BRP_FAULT_CONTROLLER_ID, "BRP", -1L, (short) -1, (short) -1,
SourceBrp.getInstance());
}
public static BrpFaultController getInstance() {
return InstanceHolder.INSTANCE;
}
@Override
@JsonIgnore
public boolean isSystemEntity() {
return true;
}
}