package Ġcom . web performance . m use . measure ments . step duration Ċ Ċ import Ġorg . mu set est . core . M use TypeId Ċ import Ġorg . mu set est . core . plugins . Generic Configurable Plugin Ċ import Ġorg . mu set est . core . plugins . Plugin Configuration Ċ import Ġorg . mu set est . core . resource . generic . Default Resource Descriptor Ċ import Ġorg . mu set est . core . resource . generic . Generic Resource Configuration Ċ import Ġorg . mu set est . core . resource . generic . Resource Descriptor Ċ import Ġorg . mu set est . core . resource . types . Resource Subtype Ċ import Ġorg . mu set est . core . resource . types . ResourceType Ċ import Ġorg . mu set est . core . values . Value Source Configuration Ċ import Ġorg . mu set est . core . values . descriptor . M use Sub source Descriptor Ċ import Ġorg . mu set est . core . values . descriptor . M use Sub source Descriptors Ċ import Ġorg . mu set est . core . values . descriptor . Sub source Descriptor Ċ Ċ /** Ċ Ġ* Ġ@ author ĠCh ristopher ĠL ĠM err ill Ġ( see ĠLICENSE . txt Ġfor Ġlicense Ġdetails ) Ċ Ġ*/ Ċ @ M use TypeId (" step - duration - goal - as sess or ") Ċ @ M use Sub source Descriptors ( Ċ ĉ M use Sub source Descriptor ( displayName Ġ= Ġ" Apply Ġautomatically ?", Ġdescription Ġ= Ġ" If Ġthis Ġsource Ġresolves Ġto Ġtrue , Ġthis Ġplugin Ġconfiguration Ġwill Ġbe Ġautomatically Ġapplied Ġto Ġtests ", Ġtype Ġ= ĠSub source Descriptor . Type . Named , Ġname Ġ= ĠGeneric Configurable Plugin . AUTO _ AP PLY _ PARAM ), Ċ ĉ M use Sub source Descriptor ( displayName Ġ= Ġ" Apply Ġonly Ġif ", Ġdescription Ġ= Ġ" Apply Ġonly Ġif Ġthis Ġsource Ġthis Ġsource Ġresolves Ġto Ġtrue ", Ġtype Ġ= ĠSub source Descriptor . Type . Named , Ġname Ġ= ĠGeneric Configurable Plugin . AP PLY _ CONDITION _ PARAM ), Ċ ĉ M use Sub source Descriptor ( displayName Ġ= Ġ" Step Ġtag ", Ġdescription Ġ= Ġ" If Ġthis Ġparameter Ġis Ġpresent , Ġonly Ġassess Ġduration Ġgoals Ġon Ġsteps Ġtagged Ġwith Ġthe Ġvalue Ġof Ġthis Ġparameter ", Ġtype Ġ= ĠSub source Descriptor . Type . Named , Ġname Ġ= ĠStep Duration Goal As sess or Configuration . STEP _ TAG _ PARAM ), Ċ ĉ M use Sub source Descriptor ( displayName Ġ= Ġ" Collect Ġpass / fails ", Ġdescription Ġ= Ġ" If Ġthis Ġparameter Ġis Ġpresent Ġand Ġtrue , Ġcollect Ġpass / fail Ġtotals ", Ġtype Ġ= ĠSub source Descriptor . Type . Named , Ġname Ġ= ĠStep Duration Goal As sess or Configuration . COLLECT _ GO ALS _ PARAM , Ġoptional Ġ= Ġtrue ), Ċ ĉ M use Sub source Descriptor ( displayName Ġ= Ġ" Goal ", Ġdescription Ġ= Ġ" The Ġstep Ġduration Ġgoal Ġ( in Ġms )", Ġtype Ġ= ĠSub source Descriptor . Type . Named , Ġname Ġ= ĠStep Duration Goal As sess or Configuration . GO AL _ PARAM ), Ċ ĉ M use Sub source Descriptor ( displayName Ġ= Ġ" Custom Ġgoal Ġname ", Ġdescription Ġ= Ġ" If Ġpresent , Ġthis Ġparameter Ġprovides Ġthe Ġname Ġof Ġa Ġmetadata Ġattribute Ġthat Ġmay Ġbe Ġadded Ġto Ġsteps Ġto Ġspecify Ġa Ġcustom Ġgoal Ġfor Ġthat Ġstep Ġ( in Ġms )", Ġtype Ġ= ĠSub source Descriptor . Type . Named , Ġname Ġ= ĠStep Duration Goal As sess or Configuration . GO AL _ NAME _ PARAM , Ġoptional Ġ= Ġtrue ) Ċ ) Ċ class ĠStep Duration Goal As sess or Configuration Ġ: ĠGeneric Resource Configuration (), ĠPlugin Configuration Ċ { Ċ ĉ override Ġfun ĠgetType (): ĠResource Type ? Ċ ĉ { Ċĉ ĉ return ĠStep Duration Goal As sess or Type () Ċ ĉ } ĊĊ ĉ override Ġfun Ġcreate Plugin (): ĠStep Duration Goal As sess or Ċ ĉ { Ċĉ ĉ return ĠStep Duration Goal As sess or ( this ) Ċ ĉ } ĊĊ ĉ class ĠStep Duration Goal As sess or Type Ġ: ĠResource Subtype ( TYPE _ ID , Ġ" Step ĠDuration ĠGoal ĠAs sess or ", ĠStep Duration Goal As sess or Configuration :: class . java , ĠPlugin Configuration . Plugin Configuration ResourceType ()) Ċ ĉ { ĊĊĉ ĉ override Ġfun Ġcreate (): ĠStep Duration Goal As sess or Configuration Ċĉ ĉ { Ċĉĉ ĉ val Ġconfig Ġ= ĠStep Duration Goal As sess or Configuration () Ċĉĉ ĉ config . parameters (). add Source ( Generic Configurable Plugin . AUTO _ AP PLY _ PARAM , ĠValue Source Configuration . for Value ( true )) Ċĉĉ ĉ config . parameters (). add Source ( Generic Configurable Plugin . AP PLY _ CONDITION _ PARAM , ĠValue Source Configuration . for Value ( true )) Ċĉĉ ĉ config . parameters (). add Source ( STEP _ TAG _ PARAM , ĠValue Source Configuration . for Value (" as sess - goal ")) Ċĉĉ ĉ config . parameters (). add Source ( GO AL _ PARAM , ĠValue Source Configuration . for Value ( 1 0 0 0 L )) Ċĉĉ ĉ return Ġconfig Ċĉ ĉ } ĊĊĉ ĉ override Ġfun ĠgetDescriptor (): ĠResource Descriptor Ċĉ ĉ { Ċĉĉ ĉ return ĠDefault Resource Descriptor ( this , Ġ" Compare Ġthe Ġduration Ġof Ġthe Ġstep Ġto Ġthe Ġgoal .") Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ comp anion Ġobject Ċ ĉ { ĊĊĉ ĉ val ĠTYPE _ ID Ġ= ĠStep Duration Goal As sess or Configuration :: class . java . getAnnotation ( M use TypeId :: class . java ). value Ċĉ ĉ const Ġval ĠSTEP _ TAG _ PARAM Ġ= Ġ" ste pt ag " Ċĉ ĉ const Ġval ĠCOL LECT _ GO ALS _ PARAM Ġ= Ġ" collect " Ċĉ ĉ const Ġval ĠGO AL _ PARAM Ġ= Ġ" goal " Ċĉ ĉ const Ġval ĠGO AL _ NAME _ PARAM Ġ= Ġ" custom - goal - name " Ċ ĉ } Ċ } Ċ