Interface RidGenerator<T>


  • public interface RidGenerator<T>
    This is an interface for the generation of RID
    Since:
    1.0.0
    Author:
    Sidhant Agarwal
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T generateId​(String agentId, String machineId)
      This method is used to generate Registration ID(RID)
      T generateId​(String centreId, String machineId, int centerIdLength, int machineIdLength, int sequenceLength, int timestampLength)
      This method is used to generate Registration ID(RID)
    • Method Detail

      • generateId

        T generateId​(String agentId,
                     String machineId)
        This method is used to generate Registration ID(RID)
        Parameters:
        agentId - input given by user
        machineId - input by user
        Returns:
        containing generated RID
      • generateId

        T generateId​(String centreId,
                     String machineId,
                     int centerIdLength,
                     int machineIdLength,
                     int sequenceLength,
                     int timestampLength)
        This method is used to generate Registration ID(RID)
        Parameters:
        centreId - the center id
        machineId - the machine id
        centerIdLength - length of the given center id
        machineIdLength - length of the given machine id
        sequenceLength - length of the sequence
        timestampLength - length of the timeStamp
        Returns:
        containing generated RID