예제 #1
0
 public NeuralNetwork(Random r)
 {
     _rand          = r;
     ActivationType = EnumActivation.Relu;
     LearningRate   = 0.05f;
     Inputs         = new List <Neuron>();
     Hiddens        = new List <HiddenNeurons>();
     Outputs        = new List <Neuron>();
 }
예제 #2
0
        ///
        ///	 <summary> * apply all values of a JDF Node to this </summary>
        ///	 * <param name="node"> the node to apply </param>
        ///
        public virtual void applyNode(JDFNode node)
        {
            NodeIdentifier ni = node == null ? new NodeIdentifier() : node.getIdentifier();

            setIdentifier(ni);
            if (node != null)
            {
                JDFNode.EnumActivation activation = node.getActivation(true);
                if (activation != null)
                {
                    setActivation(EnumActivation.getEnum(activation.getName()));
                }
                VJDFAttributeMap vMap = ni.getPartMapVector();
                setStatus(node.getVectorPartStatus(vMap));
                setStatusDetails(node.getVectorPartStatusDetails(vMap));
            }
        }
예제 #3
0
 ///
 ///          <summary> * (9) get attribute Activation </summary>
 ///          * <returns> the value of the attribute </returns>
 ///
 public virtual EnumActivation getActivation()
 {
     return(EnumActivation.getEnum(getAttribute(AttributeName.ACTIVATION, null, null)));
 }
예제 #4
0
        // ************************************************************************
        // * Attribute getter / setter
        // * ************************************************************************
        //

        //         ---------------------------------------------------------------------
        //        Methods for Attribute Activation
        //        ---------------------------------------------------------------------
        ///
        ///          <summary> * (5) set attribute Activation </summary>
        ///          * <param name="enumVar">: the enumVar to set the attribute to </param>
        ///
        public virtual void setActivation(EnumActivation enumVar)
        {
            setAttribute(AttributeName.ACTIVATION, enumVar == null ? null : enumVar.getName(), null);
        }
예제 #5
0
 static JDFAutoJobPhase()
 {
     atrInfoTable[0]  = new AtrInfoTable(AttributeName.ACTIVATION, 0x33333331, AttributeInfo.EnumAttributeType.enumeration, EnumActivation.getEnum(0), null);
     atrInfoTable[1]  = new AtrInfoTable(AttributeName.AMOUNT, 0x33333333, AttributeInfo.EnumAttributeType.double_, null, null);
     atrInfoTable[2]  = new AtrInfoTable(AttributeName.DEADLINE, 0x33333333, AttributeInfo.EnumAttributeType.enumeration, EnumDeadLine.getEnum(0), null);
     atrInfoTable[3]  = new AtrInfoTable(AttributeName.JOBID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[4]  = new AtrInfoTable(AttributeName.JOBPARTID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[5]  = new AtrInfoTable(AttributeName.PERCENTCOMPLETED, 0x33333333, AttributeInfo.EnumAttributeType.double_, null, null);
     atrInfoTable[6]  = new AtrInfoTable(AttributeName.PHASEAMOUNT, 0x33333311, AttributeInfo.EnumAttributeType.double_, null, null);
     atrInfoTable[7]  = new AtrInfoTable(AttributeName.PHASESTARTTIME, 0x33333311, AttributeInfo.EnumAttributeType.dateTime, null, null);
     atrInfoTable[8]  = new AtrInfoTable(AttributeName.PHASEWASTE, 0x33333311, AttributeInfo.EnumAttributeType.double_, null, null);
     atrInfoTable[9]  = new AtrInfoTable(AttributeName.QUEUEENTRYID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[10] = new AtrInfoTable(AttributeName.RESTTIME, 0x33333331, AttributeInfo.EnumAttributeType.duration, null, null);
     atrInfoTable[11] = new AtrInfoTable(AttributeName.SPEED, 0x33333333, AttributeInfo.EnumAttributeType.double_, null, null);
     atrInfoTable[12] = new AtrInfoTable(AttributeName.STARTTIME, 0x33333331, AttributeInfo.EnumAttributeType.dateTime, null, null);
     atrInfoTable[13] = new AtrInfoTable(AttributeName.STATUS, 0x22222222, AttributeInfo.EnumAttributeType.enumeration, EnumNodeStatus.getEnum(0), null);
     atrInfoTable[14] = new AtrInfoTable(AttributeName.STATUSDETAILS, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[15] = new AtrInfoTable(AttributeName.TOTALAMOUNT, 0x33333331, AttributeInfo.EnumAttributeType.double_, null, null);
     atrInfoTable[16] = new AtrInfoTable(AttributeName.WASTE, 0x33333331, AttributeInfo.EnumAttributeType.double_, null, null);
     elemInfoTable[0] = new ElemInfoTable(ElementName.COSTCENTER, 0x66666666);
     elemInfoTable[1] = new ElemInfoTable(ElementName.MISDETAILS, 0x66666611);
     elemInfoTable[2] = new ElemInfoTable(ElementName.MODULESTATUS, 0x33333111);
     elemInfoTable[3] = new ElemInfoTable(ElementName.PART, 0x33333333);
 }
예제 #6
0
 static JDFAutoModifyNodeCmdParams()
 {
     atrInfoTable[0]  = new AtrInfoTable(AttributeName.ACTIVATION, 0x33333111, AttributeInfo.EnumAttributeType.enumeration, EnumActivation.getEnum(0), null);
     atrInfoTable[1]  = new AtrInfoTable(AttributeName.JOBID, 0x22222111, AttributeInfo.EnumAttributeType.string_, null, null);
     atrInfoTable[2]  = new AtrInfoTable(AttributeName.JOBPARTID, 0x22222111, AttributeInfo.EnumAttributeType.string_, null, null);
     elemInfoTable[0] = new ElemInfoTable(ElementName.NEWCOMMENT, 0x33333111);
 }
예제 #7
0
 static JDFAutoResourceCmdParams()
 {
     atrInfoTable[0]  = new AtrInfoTable(AttributeName.ACTIVATION, 0x33333331, AttributeInfo.EnumAttributeType.enumeration, EnumActivation.getEnum(0), "Active");
     atrInfoTable[1]  = new AtrInfoTable(AttributeName.EXACT, 0x33333333, AttributeInfo.EnumAttributeType.boolean_, null, "false");
     atrInfoTable[2]  = new AtrInfoTable(AttributeName.JOBID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[3]  = new AtrInfoTable(AttributeName.JOBPARTID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[4]  = new AtrInfoTable(AttributeName.PROCESSUSAGE, 0x33333333, AttributeInfo.EnumAttributeType.NMTOKEN, null, null);
     atrInfoTable[5]  = new AtrInfoTable(AttributeName.PRODUCTID, 0x33333311, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[6]  = new AtrInfoTable(AttributeName.PRODUCTIONAMOUNT, 0x33333333, AttributeInfo.EnumAttributeType.double_, null, null);
     atrInfoTable[7]  = new AtrInfoTable(AttributeName.QUEUEENTRYID, 0x33333311, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[8]  = new AtrInfoTable(AttributeName.RESOURCENAME, 0x33333333, AttributeInfo.EnumAttributeType.NMTOKEN, null, null);
     atrInfoTable[9]  = new AtrInfoTable(AttributeName.RESOURCEID, 0x33333333, AttributeInfo.EnumAttributeType.NMTOKEN, null, null);
     atrInfoTable[10] = new AtrInfoTable(AttributeName.STATUS, 0x33333311, AttributeInfo.EnumAttributeType.enumeration, JDFResource.EnumResStatus.getEnum(0), null);
     atrInfoTable[11] = new AtrInfoTable(AttributeName.UPDATEIDS, 0x33333331, AttributeInfo.EnumAttributeType.NMTOKENS, null, null);
     atrInfoTable[12] = new AtrInfoTable(AttributeName.UPDATEMETHOD, 0x33333333, AttributeInfo.EnumAttributeType.enumeration, EnumUpdateMethod.getEnum(0), "Complete");
     elemInfoTable[0] = new ElemInfoTable(ElementName.PART, 0x33333311);
     elemInfoTable[1] = new ElemInfoTable(ElementName.MISDETAILS, 0x66666611);
     elemInfoTable[2] = new ElemInfoTable(ElementName.RESOURCE, 0x33333333);
 }
예제 #8
0
 static JDFAutoAncestor()
 {
     atrInfoTable[0]  = new AtrInfoTable(AttributeName.ACTIVATION, 0x33333333, AttributeInfo.EnumAttributeType.enumeration, EnumActivation.getEnum(0), null);
     atrInfoTable[1]  = new AtrInfoTable(AttributeName.FILENAME, 0x33333333, AttributeInfo.EnumAttributeType.URL, null, null);
     atrInfoTable[2]  = new AtrInfoTable(AttributeName.ICSVERSIONS, 0x33333311, AttributeInfo.EnumAttributeType.NMTOKENS, null, null);
     atrInfoTable[3]  = new AtrInfoTable(AttributeName.JOBID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[4]  = new AtrInfoTable(AttributeName.JOBPARTID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[5]  = new AtrInfoTable(AttributeName.MAXVERSION, 0x33333311, AttributeInfo.EnumAttributeType.JDFJMFVersion, EnumVersion.getEnum(0), null);
     atrInfoTable[6]  = new AtrInfoTable(AttributeName.NODEID, 0x22222222, AttributeInfo.EnumAttributeType.NMTOKEN, null, null);
     atrInfoTable[7]  = new AtrInfoTable(AttributeName.PROJECTID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[8]  = new AtrInfoTable(AttributeName.RELATEDJOBID, 0x33333311, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[9]  = new AtrInfoTable(AttributeName.RELATEDJOBPARTID, 0x33333311, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[10] = new AtrInfoTable(AttributeName.SPAWNID, 0x33333331, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[11] = new AtrInfoTable(AttributeName.STATUS, 0x33333333, AttributeInfo.EnumAttributeType.enumeration, EnumNodeStatus.getEnum(0), null);
     atrInfoTable[12] = new AtrInfoTable(AttributeName.STATUSDETAILS, 0x33333311, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[13] = new AtrInfoTable(AttributeName.TEMPLATE, 0x33333331, AttributeInfo.EnumAttributeType.boolean_, null, "false");
     atrInfoTable[14] = new AtrInfoTable(AttributeName.TEMPLATEID, 0x33333311, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[15] = new AtrInfoTable(AttributeName.TEMPLATEVERSION, 0x33333311, AttributeInfo.EnumAttributeType.string_, null, null);
     atrInfoTable[16] = new AtrInfoTable(AttributeName.TYPE, 0x33333333, AttributeInfo.EnumAttributeType.NMTOKEN, null, null);
     atrInfoTable[17] = new AtrInfoTable(AttributeName.TYPES, 0x33333333, AttributeInfo.EnumAttributeType.NMTOKENS, null, null);
     atrInfoTable[18] = new AtrInfoTable(AttributeName.VERSION, 0x33333333, AttributeInfo.EnumAttributeType.JDFJMFVersion, null, null);
     elemInfoTable[0] = new ElemInfoTable(ElementName.CUSTOMERINFO, 0x66666661);
     elemInfoTable[1] = new ElemInfoTable(ElementName.NODEINFO, 0x66666661);
 }