|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.elk.impl.subscriptions.SubscriptionImpl
public class SubscriptionImpl
Implements an internal representation of a subscription. The class is used to
store information about a subscription. A Subscription element
consists of:
Timerif the Subscription contained a
TimeRepeat attribute.getId()which is
also the same as the channelID.
| Field Summary |
|---|
| Fields inherited from interface org.cip4.elk.jmf.Subscription |
|---|
EVENT_TYPE, TIME_TYPE |
| Constructor Summary | |
|---|---|
SubscriptionImpl(java.lang.String deviceID,
org.cip4.jdflib.jmf.JDFQuery q,
java.lang.String url)
Creates a Subscription element. |
|
| Method Summary | |
|---|---|
void |
cancelTimer()
Cancel this Subscription's Timer. |
java.lang.String |
getId()
|
java.lang.String |
getMessageType()
|
org.cip4.jdflib.jmf.JDFQuery |
getQuery()
|
int |
getRepeatStep()
|
java.lang.String |
getType()
|
java.lang.String |
getUrl()
|
boolean |
isRepeatStepSubscription()
|
void |
setRepeatStep(int repeatStep)
Sets the RepeatStep attribute of this Subscription. |
void |
setTimer(java.util.Timer t)
Sets a Timer for this Subscription. |
void |
setType(java.lang.String type)
Sets the type of the subscription. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SubscriptionImpl(java.lang.String deviceID,
org.cip4.jdflib.jmf.JDFQuery q,
java.lang.String url)
Subscription element.
deviceID - The if of the Device that this Query
was sent.q - A Query containing a Subscription element.url - The url to which the Signals should be sent.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getMessageType()
getMessageType in interface org.cip4.elk.jmf.Subscriptionpublic java.lang.String getType()
getType in interface org.cip4.elk.jmf.Subscriptionpublic void setType(java.lang.String type)
type - the type. use Subscription.EVENT_TYPEand
Subscription.TIME_TYPEto set this value.
java.lang.IllegalArgumentException - if type is not
Subscription.EVENT_TYPEor
Subscription.TIME_TYPE.getType()public org.cip4.jdflib.jmf.JDFQuery getQuery()
getQuery in interface org.cip4.elk.jmf.Subscriptionpublic void setTimer(java.util.Timer t)
Timer for this Subscription.
t - the Timer to be set.public void cancelTimer()
Subscription's Timer.
public java.lang.String getId()
getId in interface org.cip4.elk.jmf.Subscriptionpublic java.lang.String getUrl()
getUrl in interface org.cip4.elk.jmf.Subscriptionpublic void setRepeatStep(int repeatStep)
Subscription.
repeatStep - public boolean isRepeatStepSubscription()
isRepeatStepSubscription in interface org.cip4.elk.jmf.Subscriptionpublic int getRepeatStep()
getRepeatStep in interface org.cip4.elk.jmf.Subscription
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||