com.geotab.model.entity.controller.LegacyFaultController 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.SourceLegacy;
import com.geotab.model.serialization.SystemEntitySerializationAware;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* Controller reserved for faults generated with legacy manufacturer specific codes.
*/
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public final class LegacyFaultController extends Controller implements
SystemEntitySerializationAware {
private static class InstanceHolder {
private static final LegacyFaultController INSTANCE = new LegacyFaultController();
}
public static final String LEGACY_FAULT_CONTROLLER_ID = "ControllerLegacyFaultId";
private LegacyFaultController() {
super(LEGACY_FAULT_CONTROLLER_ID, "Manufacturer Specific", -1L, (short) -1, (short) -1,
SourceLegacy.getInstance());
}
public static LegacyFaultController getInstance() {
return InstanceHolder.INSTANCE;
}
@Override
@JsonIgnore
public boolean isSystemEntity() {
return true;
}
}