Package edu.fiu.jtlex.data
Class Signal
java.lang.Object
edu.fiu.jtlex.data.Signal
- All Implemented Interfaces:
ISignal
Default implementation of
ISignal.- Author:
- arada002
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Signal
Creates a new Signal object.- Parameters:
signalID- a unique ID numbersignalString- temporal preposition, conjunction or modifier phrase- Throws:
IllegalArgumentException- if signalID is less than 1 if signalString is empty or all whitespaceNullPointerException- if signalString is null
-
-
Method Details
-
getID
public int getID()Description copied from interface:ISignalReturns a unique signal ID number. -
getIdStr
Description copied from interface:ISignalReturns a unique signal ID string. -
getSignalString
Description copied from interface:ISignalReturns the temporal preposition, conjunction or modifier phrase.- Specified by:
getSignalStringin interfaceISignal- Returns:
- the temporal preposition, conjunction or modifier phrase.
May not return
null.
-
toString
-
toJSON
Description copied from interface:ISignalReturns the JSON (RFC 8259) representation of the Signal. -
equals
-
clone
-