jill/src/main/java/io/github/agentsoz/jill/core/beliefbase/abs/ABeliefStore.java
public static String getFieldName(int agentid, int beliefset, int index)
      throws BeliefBaseException {
    if (beliefset < 0 || beliefset > beliefsets.size()) {
      throw new BeliefBaseException("belief set id " + beliefset + " is invalid");
    }
    BeliefSetField[] bsf = beliefsetsByID.get(beliefset).getFields();
    if (index < 0 || index >= bsf.length) {
      throw new BeliefBaseException("belief set field id " + index + " is invalid");
    }
    return bsf[index].getName();
  }
public static String getFieldName(int agentid, int beliefset, int index)
      throws BeliefBaseException {
    if (beliefset < 0 || beliefset > beliefsets.size()) {
      throw new BeliefBaseException("belief set id " + beliefset + " is invalid");
    }
    BeliefSetField[] bsf = beliefsetsByID.get(beliefset).getFields();
    if (index < 0 || index >= bsf.length) {
      throw new BeliefBaseException("belief set field id " + index + " is invalid");
    }
    return bsf[index].getName();
  }
public static String getFieldName ( int agentid , int beliefset , int index ) throws BeliefBaseException { if ( beliefset < 0 || beliefset > beliefsets . size ( ) ) { throw new BeliefBaseException ( "belief set id " + beliefset + " is invalid" ) ; } BeliefSetField [ ] bsf = beliefsetsByID . get ( beliefset ) . getFields ( ) ; if ( index < 0 || index >= bsf . length ) { throw new BeliefBaseException ( "belief set field id " + index + " is invalid" ) ; } return bsf [ index ] . getName ( ) ; }
Gets the belief set field name (see
{@link io.github.agentsoz.jill.core.beliefbase.BeliefSetField}) for the given belief set
for the given agent.

@param agentid the agent in question
@param beliefset the beliefset of that agent
@param index the index of the belief set field in that belief set
@return the name of the belief set field
@throws BeliefBaseException if something went wrong
Gets the belief set field name ( see { @link io . github . agentsoz . jill . core . beliefbase . BeliefSetField } ) for the given belief set for the given agent .