Class ClockState
- java.lang.Object
-
- org.somda.sdc.biceps.model.participant.AbstractState
-
- org.somda.sdc.biceps.model.participant.AbstractDeviceComponentState
-
- org.somda.sdc.biceps.model.participant.ClockState
-
- All Implemented Interfaces:
Cloneable,org.jvnet.jaxb2_commons.lang.CopyTo2,org.jvnet.jaxb2_commons.lang.ToString2
public class ClockState extends AbstractDeviceComponentState implements Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo2, org.jvnet.jaxb2_commons.lang.ToString2
State of a clock of an MDS.Java class for ClockState complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ClockState"> <complexContent> <extension base="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}AbstractDeviceComponentState"> <sequence> <element name="ActiveSyncProtocol" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}CodedValue" minOccurs="0"/> <element name="ReferenceSource" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="DateAndTime" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}Timestamp" /> <attribute name="RemoteSync" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="Accuracy" type="{http://www.w3.org/2001/XMLSchema}decimal" /> <attribute name="LastSet" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}Timestamp" /> <attribute name="TimeZone" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}TimeZone" /> <attribute name="CriticalUse" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected BigDecimalaccuracyprotected CodedValueactiveSyncProtocolprotected BooleancriticalUseprotected InstantdateAndTimeprotected InstantlastSetprotected List<String>referenceSourceprotected booleanremoteSyncprotected StringtimeZone-
Fields inherited from class org.somda.sdc.biceps.model.participant.AbstractDeviceComponentState
activationState, calibrationInfo, nextCalibration, operatingCycles, operatingHours, physicalConnector
-
Fields inherited from class org.somda.sdc.biceps.model.participant.AbstractState
descriptorHandle, descriptorVersion, extension, stateVersion
-
-
Constructor Summary
Constructors Constructor Description ClockState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)Objectclone()ObjectcopyTo(Object target)ObjectcopyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, Object target, org.jvnet.jaxb2_commons.lang.CopyStrategy2 strategy)ObjectcreateNewInstance()booleanequals(Object object)BigDecimalgetAccuracy()Gets the value of the accuracy property.CodedValuegetActiveSyncProtocol()Gets the value of the activeSyncProtocol property.InstantgetDateAndTime()Gets the value of the dateAndTime property.InstantgetLastSet()Gets the value of the lastSet property.List<String>getReferenceSource()Gets the value of the referenceSource property.StringgetTimeZone()Gets the value of the timeZone property.inthashCode()BooleanisCriticalUse()Gets the value of the criticalUse property.booleanisRemoteSync()Gets the value of the remoteSync property.voidsetAccuracy(BigDecimal value)Sets the value of the accuracy property.voidsetActiveSyncProtocol(CodedValue value)Sets the value of the activeSyncProtocol property.voidsetCriticalUse(Boolean value)Sets the value of the criticalUse property.voidsetDateAndTime(Instant value)Sets the value of the dateAndTime property.voidsetLastSet(Instant value)Sets the value of the lastSet property.voidsetReferenceSource(List<String> value)voidsetRemoteSync(boolean value)Sets the value of the remoteSync property.voidsetTimeZone(String value)Sets the value of the timeZone property.StringtoString()-
Methods inherited from class org.somda.sdc.biceps.model.participant.AbstractDeviceComponentState
getActivationState, getCalibrationInfo, getNextCalibration, getOperatingCycles, getOperatingHours, getPhysicalConnector, setActivationState, setCalibrationInfo, setNextCalibration, setOperatingCycles, setOperatingHours, setPhysicalConnector
-
Methods inherited from class org.somda.sdc.biceps.model.participant.AbstractState
getDescriptorHandle, getDescriptorVersion, getExtension, getStateVersion, setDescriptorHandle, setDescriptorVersion, setExtension, setStateVersion
-
-
-
-
Field Detail
-
activeSyncProtocol
protected CodedValue activeSyncProtocol
-
dateAndTime
protected Instant dateAndTime
-
remoteSync
protected boolean remoteSync
-
accuracy
protected BigDecimal accuracy
-
lastSet
protected Instant lastSet
-
timeZone
protected String timeZone
-
criticalUse
protected Boolean criticalUse
-
-
Method Detail
-
getActiveSyncProtocol
public CodedValue getActiveSyncProtocol()
Gets the value of the activeSyncProtocol property.- Returns:
- possible object is
CodedValue
-
setActiveSyncProtocol
public void setActiveSyncProtocol(CodedValue value)
Sets the value of the activeSyncProtocol property.- Parameters:
value- allowed object isCodedValue
-
getReferenceSource
public List<String> getReferenceSource()
Gets the value of the referenceSource property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the referenceSource property.For example, to add a new item, do as follows:
getReferenceSource().add(newItem);Objects of the following type(s) are allowed in the list
String
-
getDateAndTime
public Instant getDateAndTime()
Gets the value of the dateAndTime property.- Returns:
- possible object is
String
-
setDateAndTime
public void setDateAndTime(Instant value)
Sets the value of the dateAndTime property.- Parameters:
value- allowed object isString
-
isRemoteSync
public boolean isRemoteSync()
Gets the value of the remoteSync property.
-
setRemoteSync
public void setRemoteSync(boolean value)
Sets the value of the remoteSync property.
-
getAccuracy
public BigDecimal getAccuracy()
Gets the value of the accuracy property.- Returns:
- possible object is
BigDecimal
-
setAccuracy
public void setAccuracy(BigDecimal value)
Sets the value of the accuracy property.- Parameters:
value- allowed object isBigDecimal
-
getLastSet
public Instant getLastSet()
Gets the value of the lastSet property.- Returns:
- possible object is
String
-
setLastSet
public void setLastSet(Instant value)
Sets the value of the lastSet property.- Parameters:
value- allowed object isString
-
getTimeZone
public String getTimeZone()
Gets the value of the timeZone property.- Returns:
- possible object is
String
-
setTimeZone
public void setTimeZone(String value)
Sets the value of the timeZone property.- Parameters:
value- allowed object isString
-
isCriticalUse
public Boolean isCriticalUse()
Gets the value of the criticalUse property.- Returns:
- possible object is
Boolean
-
setCriticalUse
public void setCriticalUse(Boolean value)
Sets the value of the criticalUse property.- Parameters:
value- allowed object isBoolean
-
clone
public Object clone()
- Overrides:
clonein classAbstractDeviceComponentState
-
copyTo
public Object copyTo(Object target)
- Specified by:
copyToin interfaceorg.jvnet.jaxb2_commons.lang.CopyTo2- Overrides:
copyToin classAbstractDeviceComponentState
-
copyTo
public Object copyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, Object target, org.jvnet.jaxb2_commons.lang.CopyStrategy2 strategy)
- Specified by:
copyToin interfaceorg.jvnet.jaxb2_commons.lang.CopyTo2- Overrides:
copyToin classAbstractDeviceComponentState
-
createNewInstance
public Object createNewInstance()
- Specified by:
createNewInstancein interfaceorg.jvnet.jaxb2_commons.lang.CopyTo2- Overrides:
createNewInstancein classAbstractDeviceComponentState
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classAbstractDeviceComponentState
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractDeviceComponentState
-
toString
public String toString()
- Overrides:
toStringin classAbstractDeviceComponentState
-
append
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classAbstractDeviceComponentState
-
appendFields
public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classAbstractDeviceComponentState
-
-