question: public static CommandTagCacheObject createTestCommandTag ( ) { CommandTagCacheObject commandTag = new CommandTagCacheObject ( Long . valueOf ( 2000 ) , "Test command tag" , "Test command tag desc" , "Float" , DataTagConstants . MODE_OPERATIONAL ) ; commandTag . setEquipmentId ( Long . valueOf ( 100 ) ) ; commandTag . setMaximum ( Float . valueOf ( 5 ) ) ; commandTag . setMinimum ( Float . valueOf ( 1 ) ) ; RbacAuthorizationDetails details = new RbacAuthorizationDetails ( ) ; details . setRbacClass ( "class" ) ; details . setRbacDevice ( "device" ) ; details . setRbacProperty ( "property" ) ; commandTag . setAuthorizationDetails ( details ) ; commandTag . setClientTimeout ( 10000 ) ; try { commandTag . setHardwareAddress ( new OPCHardwareAddressImpl ( "test" ) ) ; } catch ( ConfigurationException e ) { e . printStackTrace ( ) ; } commandTag . setSourceTimeout ( 10000 ) ; commandTag . setSourceRetries ( 4 ) ; commandTag . setExecTimeout ( 10000 ) ; commandTag . setProcessId ( Long . valueOf ( 90 ) ) ; CommandExecutionDetails < Long > commandExecutionDetails = new CommandExecutionDetails < Long > ( ) ; commandExecutionDetails . setExecutionStartTime ( new Timestamp ( System . currentTimeMillis ( ) - 1000 ) ) ; commandExecutionDetails . setExecutionEndTime ( new Timestamp ( System . currentTimeMillis ( ) ) ) ; commandExecutionDetails . setValue ( 10L ) ; commandTag . setCommandExecutionDetails ( commandExecutionDetails ) ; return commandTag ; }
target:  Creates a test CommandTag