Class Device<D extends Device<D,​T>,​T extends DeviceType>

All Implemented Interfaces:
java.io.Serializable, GuiTitlable, Idable, ListItem, TreeNode<D>
Direct Known Subclasses:
InetDevice, InvDevice, TvDevice, VoiceDevice

public abstract class Device<D extends Device<D,​T>,​T extends DeviceType>
extends Entity
implements TreeNode<D>
See Also:
Serialized Form
  • Field Details

  • Constructor Details

  • Method Details

    • getDeviceTypeId

      public int getDeviceTypeId()
    • setDeviceTypeId

      public void setDeviceTypeId​(int deviceTypeId)
    • getParentId

      public int getParentId()
    • setParentId

      public void setParentId​(int parentId)
    • getDeviceType

      public T getDeviceType()
    • setDeviceType

      public void setDeviceType​(T deviceType)
    • getIdentifier

      public java.lang.String getIdentifier()
    • setIdentifier

      public void setIdentifier​(java.lang.String identifier)
    • getDeviceGroupIds

      public java.util.Set<java.lang.Integer> getDeviceGroupIds()
    • setDeviceGroupIds

      public void setDeviceGroupIds​(java.util.Set<java.lang.Integer> deviceGroupIds)
    • getHost

      public java.lang.String getHost()
    • getHosts

      public java.util.List<java.net.InetSocketAddress> getHosts()
    • main

      public static void main​(java.lang.String[] args)
    • getHostsAsString

      public java.util.List<java.lang.String[]> getHostsAsString()
    • setHost

      public void setHost​(java.lang.String host)
    • getUsername

      public java.lang.String getUsername()
    • setUsername

      public void setUsername​(java.lang.String user)
    • getPassword

      public java.lang.String getPassword()
    • setPassword

      public void setPassword​(java.lang.String password)
    • getSecret

      public java.lang.String getSecret()
    • setSecret

      public void setSecret​(java.lang.String secret)
    • getConfig

      public java.lang.String getConfig()
    • setConfig

      public void setConfig​(java.lang.String config)
    • getChildren

      public java.util.List<D> getChildren()
      Specified by:
      getChildren in interface TreeNode<D extends Device<D,​T>>
    • setChildren

      public void setChildren​(java.util.List<D> children)
    • getComment

      public java.lang.String getComment()
    • setComment

      public void setComment​(java.lang.String comment)
    • getUptime

      public java.lang.String getUptime()
    • setUptime

      public void setUptime​(java.lang.String uptime)
    • getUptimeTime

      public java.util.Date getUptimeTime()
    • setUptimeTime

      public void setUptimeTime​(java.util.Date uptimeCheckTime)
    • generateTitle

      public static java.lang.String generateTitle​(Device<?,​?> device, DeviceType type)
    • generateTitle

      public static java.lang.String generateTitle​(java.lang.String identifier, java.lang.String host, java.lang.String type)
    • findCodePath

      public D[] findCodePath​(int pid)
    • getDateFrom

      public java.util.Date getDateFrom()
    • setDateFrom

      public void setDateFrom​(java.util.Date dateFrom)
    • getDateTo

      public java.util.Date getDateTo()
    • setDateTo

      public void setDateTo​(java.util.Date dateTo)
    • isOrderManagerDisabled

      public boolean isOrderManagerDisabled()
    • setOrderManagerDisabled

      public void setOrderManagerDisabled​(boolean orderManagerDisabled)