org.cip4.jdflib.util
Class MultiModuleStatusCounter

java.lang.Object
  extended by org.cip4.jdflib.util.MultiModuleStatusCounter

public class MultiModuleStatusCounter
extends Object

Author:
prosirai module combining statuscounter simply update the child status counters regularly. call getStatusResponse to generate a new Response based on the data in the statuscounters

Constructor Summary
MultiModuleStatusCounter()
           
 
Method Summary
 void addModule(StatusCounter sc)
          add a statuscounter representing a set of modules to this device status counter
 JDFAutoDeviceInfo.EnumDeviceStatus getDeviceStatus()
           
 JDFDoc getStatusResponse()
          return the jmf root of the status jmf that contains all modules, null if no modules are active
 void removeModule(StatusCounter sc)
          remove a statuscounter representing a set of modules to this device status counter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiModuleStatusCounter

public MultiModuleStatusCounter()
Method Detail

addModule

public void addModule(StatusCounter sc)
add a statuscounter representing a set of modules to this device status counter

Parameters:
sc - the statuscounter to add

removeModule

public void removeModule(StatusCounter sc)
remove a statuscounter representing a set of modules to this device status counter

Parameters:
sc - the statuscounter to add

getStatusResponse

public JDFDoc getStatusResponse()
return the jmf root of the status jmf that contains all modules, null if no modules are active

Returns:

getDeviceStatus

public JDFAutoDeviceInfo.EnumDeviceStatus getDeviceStatus()
Returns:
the amalgamated device status


Copyright © 2013. All Rights Reserved.