Package gov.cca.eg.component
Class TimeStamper
java.lang.Object
gov.cca.eg.component.TimeStamper
- All Implemented Interfaces:
Component,StringConsumerPort,Port
A CCA component that implements and provides StringConsumerPort, and uses a
StringConsumerPort.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetServices(Services svc) Services implementation: this is the one and only method that makes this component a CCAComponent.voidImplements the StringConsumerPort: takes a given string Stamps it with the time and shoves it out the UsesPort "out0".
-
Constructor Details
-
TimeStamper
public TimeStamper()CCA Component must have a null constructor.
-
-
Method Details
-
setServices
Services implementation: this is the one and only method that makes this component a CCAComponent.- Specified by:
setServicesin interfaceComponent
-
setString
Implements the StringConsumerPort: takes a given string Stamps it with the time and shoves it out the UsesPort "out0".- Specified by:
setStringin interfaceStringConsumerPort
-