public class GenerationEvent extends PeripheralEvent<PWMChannel>
GenerationEvent class encapsulates pulse a generation completion condition (i.e. generated pulse count
value reached). PWMChannel,
GenerationListenercount, lastTimeStamp, lastTimeStampMicros, peripheral, timeStamp, timeStampMicros| Constructor and Description |
|---|
GenerationEvent(PWMChannel channel,
int count)
Creates a new
GenerationEvent with the specified type, pulse count and time-stamped with the current
time. |
GenerationEvent(PWMChannel channel,
int count,
long timeStamp,
int timeStampMicros)
Creates a new
GenerationEvent with the specified type, pulse count and timestamp. |
| Modifier and Type | Method and Description |
|---|---|
int |
getPulseCount()
Returns the generated pulse count value.
|
getCount, getLastTimeStamp, getLastTimeStampMicros, getPeripheral, getTimeStamp, getTimeStampMicrospublic GenerationEvent(PWMChannel channel, int count)
GenerationEvent with the specified type, pulse count and time-stamped with the current
time.channel - the source PWM channel.count - the generated pulse count.java.lang.NullPointerException - if channel is null.java.lang.IllegalArgumentException - if count is negative.public GenerationEvent(PWMChannel channel, int count, long timeStamp, int timeStampMicros)
GenerationEvent with the specified type, pulse count and timestamp.channel - the source pulse channel.count - the generated pulse count.timeStamp - the timestamp (in milliseconds).timeStampMicros - the additional microseconds to the timestamp.java.lang.NullPointerException - if channel is null.java.lang.IllegalArgumentException - if count, timeStamp or timeStampMicros is negative.Copyright © 2012, 2013, Oracle and/or its affiliates. All rights reserved.
Legal Notices