<?xml version="1.0"?>

<data>
   <!--	
 * Copyright (C) 1994-2018 Altair Engineering, Inc.
 * For more information, contact Altair at www.altair.com.
 *
 * This file is part of the PBS Professional ("PBS Pro") software.
 *
 * Open Source License Information:
 *
 * PBS Pro is free software. You can redistribute it and/or modify it under the
 * terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any
 * later version.
 *
 * PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.
 * See the GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Commercial License Information:
 *
 * For a copy of the commercial license terms and conditions,
 * go to: (http://www.pbspro.com/UserArea/agreement.html)
 * or contact the Altair Legal Department.
 *
 * Altair’s dual-license business model allows companies, individuals, and
 * organizations to create proprietary derivative works of PBS Pro and
 * distribute them - whether embedded or bundled with other software -
 * under a commercial license agreement.
 *
 * Use of Altair’s trademarks, including but not limited to "PBS™",
 * "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
 * trademark licensing policies.
	
	NOTE (Server File)
	
	sched_attr_def the array of attribute definitions for sched object.
	Each legal sched attribute is defined here
	The entries for each attribute are (see attribute.h):
       name,
       decode function,
       encode function,
       set function,
       compare function,
       free value space function,
       action function,
       access permission flags,
       value type,
       parent object type
 
	NOTE (ECL File)
	
	ecl_sched_attr_def is the array of attribute and resource
 	definitions for scheduler.
 	The structure is used by the ECL verification functionality
 	to determine which verification function to be called for each
 	attribute.
	
	The entries for each attribute are (see attribute.h):
		name,
		type,
        flag,
		verify datatype function,
		verify value function
   -->	
   <head>
     <SVR>
     #include &lt;pbs_config.h&gt;   
     #include &lt;sys/types.h&gt;
     #include "pbs_ifl.h"
     #include "list_link.h"
     #include "attribute.h"
     #include "pbs_nodes.h"
     #include "svrfunc.h"
     #include "pbs_error.h"
     #include "pbs_python.h"

     attribute_def sched_attr_def[] = {
     </SVR>
     <ECL>
     #include &lt;pbs_config.h&gt;   
     #include &lt;sys/types.h&gt;
     #include "pbs_ifl.h"
     #include "pbs_ecl.h"

     ecl_attribute_def ecl_sched_attr_def[] = {
     </ECL>
   </head>
   <attributes>	/* SchedHost */	
	<member_name><both>ATTR_SchedHost</both></member_name>		<!-- "Sched_Host" -->
	<member_at_decode>decode_str</member_at_decode>
	<member_at_encode>encode_str</member_at_encode>
	<member_at_set>set_str</member_at_set>
	<member_at_comp>comp_str</member_at_comp>
	<member_at_free>free_str</member_at_free>
	<member_at_action>action_sched_host</member_at_action>
	<member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_STR</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>
	<ECL>NULL_VERIFY_DATATYPE_FUNC</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
   <attributes>	/* version */
	<member_name><both>ATTR_version</both></member_name>
	<member_at_decode>decode_str</member_at_decode>
	<member_at_encode>encode_str</member_at_encode>
	<member_at_set>set_str</member_at_set>
	<member_at_comp>comp_str</member_at_comp>
	<member_at_free>free_str</member_at_free>
	<member_at_action>NULL_FUNC</member_at_action>
	<member_at_flags><both>ATR_DFLAG_OPRD | ATR_DFLAG_MGRD | ATR_DFLAG_SvWR</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_STR</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>
	<ECL>NULL_VERIFY_DATATYPE_FUNC</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>		
   </attributes>
   <attributes>   /* sched_cycle_len */
	<member_name><both>ATTR_sched_cycle_len</both></member_name>	<!-- "sched_cycle_length" -->
	<member_at_decode>decode_time</member_at_decode>
	<member_at_encode>encode_time</member_at_encode>
	<member_at_set>set_l</member_at_set>
	<member_at_comp>comp_l</member_at_comp>
	<member_at_free>free_null</member_at_free>
	<member_at_action>NULL_FUNC</member_at_action>
	<member_at_flags><both>NO_USER_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_LONG</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>
	<ECL>verify_datatype_time</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
   <attributes>  /* do_not_span_psets */ 
	<member_name><both>ATTR_do_not_span_psets</both></member_name> 	<!-- do_not_span_psets -->
	<member_at_decode>decode_b</member_at_decode>
	<member_at_encode>encode_b</member_at_encode>
	<member_at_set>set_b</member_at_set>
	<member_at_comp>comp_b</member_at_comp>
	<member_at_free>free_null</member_at_free>
	<member_at_action>NULL_FUNC</member_at_action>
	<member_at_flags><both>NO_USER_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_LONG</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>		
	<ECL>verify_datatype_bool</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
   <attributes>  /* only_explicit_psets */
	<member_name><both>ATTR_only_explicit_psets</both></member_name> 	<!-- only_explicit_psets -->
	<member_at_decode>decode_b</member_at_decode>
	<member_at_encode>encode_b</member_at_encode>
	<member_at_set>set_b</member_at_set>
	<member_at_comp>comp_b</member_at_comp>
	<member_at_free>free_null</member_at_free>
	<member_at_action>NULL_FUNC</member_at_action>
	<member_at_flags><both>NO_USER_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_LONG</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>
	<ECL>verify_datatype_bool</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
    <attributes>  /* sched_preempt_enforce_resumption */ 
	<member_name><both>ATTR_sched_preempt_enforce_resumption</both></member_name> 	<!-- sched_preempt_enforce_resumption -->
	<member_at_decode>decode_b</member_at_decode>
	<member_at_encode>encode_b</member_at_encode>
	<member_at_set>set_b</member_at_set>
	<member_at_comp>comp_b</member_at_comp>
	<member_at_free>free_null</member_at_free>
	<member_at_action>NULL_FUNC</member_at_action>
	<member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_BOOL</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>		
	<ECL>verify_datatype_bool</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
   <attributes>  /* preempt_targets_enable */ 
	<member_name><both>ATTR_preempt_targets_enable</both></member_name> 	<!-- preempt_targets_enable -->
	<member_at_decode>decode_b</member_at_decode>
	<member_at_encode>encode_b</member_at_encode>
	<member_at_set>set_b</member_at_set>
	<member_at_comp>comp_b</member_at_comp>
	<member_at_free>free_null</member_at_free>
	<member_at_action>NULL_FUNC</member_at_action>
	<member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_BOOL</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>		
	<ECL>verify_datatype_bool</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
   <attributes>   /* job_sort_formula_threshold */
	<member_name><both>ATTR_job_sort_formula_threshold</both></member_name>	<!-- "job_sort_formula_threshold" -->
	<member_at_decode>decode_f</member_at_decode>
	<member_at_encode>encode_f</member_at_encode>
	<member_at_set>set_f</member_at_set>
	<member_at_comp>comp_f</member_at_comp>
	<member_at_free>free_null</member_at_free>
	<member_at_action>NULL_FUNC</member_at_action>
	<member_at_flags><both>NO_USER_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_FLOAT</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>
	<ECL>verify_datatype_float</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
   <attributes>  /* throughput_mode */ 
	<member_name><both>ATTR_throughput_mode</both></member_name> 	<!-- throughput_mode -->
	<member_at_decode>decode_b</member_at_decode>
	<member_at_encode>encode_b</member_at_encode>
	<member_at_set>set_b</member_at_set>
	<member_at_comp>comp_b</member_at_comp>
	<member_at_free>free_null</member_at_free>
	<member_at_action>set_sched_throughput_mode</member_at_action>
	<member_at_flags><both>NO_USER_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_LONG</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>		
	<ECL>verify_datatype_bool</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
   <attributes> /* opt_backfill_fuzzy */
        <member_name><both>ATTR_opt_backfill_fuzzy</both></member_name>
        <member_at_decode>decode_str</member_at_decode>
        <member_at_encode>encode_str</member_at_encode>
        <member_at_set>set_str</member_at_set>
        <member_at_comp>comp_str</member_at_comp>
        <member_at_free>free_str</member_at_free>
        <member_at_action>action_opt_bf_fuzzy</member_at_action>
        <member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
        <member_at_type><both>ATR_TYPE_STR</both></member_at_type>
        <member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
        <member_verify_function>
        <ECL>NULL_VERIFY_DATATYPE_FUNC</ECL>
        <ECL>NULL_VERIFY_VALUE_FUNC</ECL>
        </member_verify_function>
   </attributes>
   <attributes> /* sched_port */
        <member_name><both>ATTR_sched_port</both></member_name>         <!-- "Port" - port to which scheduler binds to --> 
        <member_at_decode>decode_l</member_at_decode>
        <member_at_encode>encode_l</member_at_encode>
        <member_at_set>set_l</member_at_set>
        <member_at_comp>comp_l</member_at_comp>
        <member_at_free>free_null</member_at_free>
        <member_at_action>action_sched_port</member_at_action>
        <member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
        <member_at_type><both>ATR_TYPE_LONG</both></member_at_type>
        <member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
        <member_verify_function>
        <ECL>verify_datatype_long</ECL>
        <ECL>NULL_VERIFY_VALUE_FUNC</ECL>
        </member_verify_function>
   </attributes>
   <attributes>	/* partition */	
	<member_name><both>ATTR_partition</both></member_name>		<!-- "partition" -->
	<member_at_decode>decode_arst</member_at_decode>
	<member_at_encode>encode_arst</member_at_encode>
	<member_at_set>set_arst_uniq</member_at_set>
	<member_at_comp>comp_arst</member_at_comp>
	<member_at_free>free_arst</member_at_free>
	<member_at_action>action_sched_partition</member_at_action>
	<member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_ARST</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>
	<ECL>NULL_VERIFY_DATATYPE_FUNC</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
   <attributes>	/* sched_priv */	
	<member_name><both>ATTR_sched_priv</both></member_name>		<!-- "sched_priv" -->
	<member_at_decode>decode_str</member_at_decode>
	<member_at_encode>encode_str</member_at_encode>
	<member_at_set>set_str</member_at_set>
	<member_at_comp>comp_str</member_at_comp>
	<member_at_free>free_str</member_at_free>
	<member_at_action>action_sched_priv</member_at_action>
	<member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_STR</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>
	<ECL>NULL_VERIFY_DATATYPE_FUNC</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
   <attributes>	/* sched_log */	
	<member_name><both>ATTR_sched_log</both></member_name>		<!-- "sched_log" -->
	<member_at_decode>decode_str</member_at_decode>
	<member_at_encode>encode_str</member_at_encode>
	<member_at_set>set_str</member_at_set>
	<member_at_comp>comp_str</member_at_comp>
	<member_at_free>free_str</member_at_free>
	<member_at_action>action_sched_log</member_at_action>
	<member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_STR</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>
	<ECL>NULL_VERIFY_DATATYPE_FUNC</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
   <attributes> /* scheduling */
        <member_name><both>ATTR_scheduling</both></member_name>
        <member_at_decode>decode_b</member_at_decode>
        <member_at_encode>encode_b</member_at_encode>
        <member_at_set>set_b</member_at_set>
        <member_at_comp>comp_b</member_at_comp>
        <member_at_free>free_null</member_at_free>
        <member_at_action>poke_scheduler</member_at_action>
        <member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
        <member_at_type><both>ATR_TYPE_BOOL</both></member_at_type>
        <member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
        <member_verify_function>
        <ECL>verify_datatype_bool</ECL>
        <ECL>NULL_VERIFY_VALUE_FUNC</ECL>
        </member_verify_function>
   </attributes>
   <attributes> /* schedit */
        <member_name><both>ATTR_schediteration</both></member_name>            <!-- "scheduler_iteration" -->
        <member_at_decode>decode_l</member_at_decode>
        <member_at_encode>encode_l</member_at_encode>
        <member_at_set>set_l</member_at_set>
        <member_at_comp>comp_l</member_at_comp>
        <member_at_free>free_null</member_at_free>
        <member_at_action>action_sched_iteration</member_at_action>
        <member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
        <member_at_type><both>ATR_TYPE_LONG</both></member_at_type>
        <member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
        <member_verify_function>
        <ECL>verify_datatype_long</ECL>
        <ECL>NULL_VERIFY_VALUE_FUNC</ECL>
        </member_verify_function>
   </attributes>
   <attributes>	/* sched_user */	
	<member_name><both>ATTR_sched_user</both></member_name>		<!-- "sched_user" -->
	<member_at_decode>decode_str</member_at_decode>
	<member_at_encode>encode_str</member_at_encode>
	<member_at_set>set_str</member_at_set>
	<member_at_comp>comp_str</member_at_comp>
	<member_at_free>free_str</member_at_free>
	<member_at_action>action_sched_user</member_at_action>
	<member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_STR</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>
	<ECL>NULL_VERIFY_DATATYPE_FUNC</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
   <attributes> /* comment */
        <member_name><both>ATTR_comment</both></member_name>                   <!-- "comment" --> 
        <member_at_decode>decode_str</member_at_decode>
        <member_at_encode>encode_str</member_at_encode>
        <member_at_set>set_str</member_at_set>
        <member_at_comp>comp_str</member_at_comp>
        <member_at_free>free_str</member_at_free>
        <member_at_action>NULL_FUNC</member_at_action>
        <member_at_flags><both>MGR_ONLY_SET</both></member_at_flags>
        <member_at_type><both>ATR_TYPE_STR</both></member_at_type>
        <member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
        <member_verify_function>
        <ECL>NULL_VERIFY_DATATYPE_FUNC</ECL>
        <ECL>NULL_VERIFY_VALUE_FUNC</ECL>
        </member_verify_function>
    </attributes>
    <attributes> /* state */
	<member_name><both>ATTR_sched_state</both></member_name>	<!-- "state" --> 
	<member_at_decode>decode_str</member_at_decode>
	<member_at_encode>encode_str</member_at_encode>
	<member_at_set>set_str</member_at_set>
	<member_at_comp>comp_str</member_at_comp>
	<member_at_free>free_str</member_at_free>
	<member_at_action>NULL_FUNC</member_at_action>
	<member_at_flags><both>READ_ONLY | ATR_DFLAG_SSET</both></member_at_flags>
	<member_at_type><both>ATR_TYPE_STR</both></member_at_type>
	<member_at_parent>PARENT_TYPE_SCHED</member_at_parent>
	<member_verify_function>
	<ECL>NULL_VERIFY_DATATYPE_FUNC</ECL>
	<ECL>NULL_VERIFY_VALUE_FUNC</ECL>
	</member_verify_function>
   </attributes>
    <tail>
     <SVR>
         #include "site_sched_attr_def.h"
	};
     </SVR>
     <ECL>
	};
	int ecl_sched_attr_size=sizeof(ecl_sched_attr_def)/sizeof(ecl_attribute_def);
     </ECL>
   </tail>
</data>
