Changeset 127 for cpp/frams/neuro/neuroimpl.cpp
- Timestamp:
- 02/10/14 20:13:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/neuro/neuroimpl.cpp
r121 r127 300 300 {"getInputSum",0,0,"Get signal sum","p f(d input)",PROCEDURE(p_getsum),}, 301 301 {"getWeightedInputSum",0,0,"Get weighted signal sum","p f(d input)",PROCEDURE(p_getwsum),"Uses any number of inputs starting with the specified input. getWeightedInputSum(0)=weightedInputSum"}, 302 {"getInputCount",0, 0,"Get input count","d",GETONLY(count),},303 {"inputSum",0, 0,"Full signal sum","f",GETONLY(sum),},304 {"weightedInputSum",0, 0,"Full weighted signal sum","f",GETONLY(wsum),},302 {"getInputCount",0,PARAM_READONLY,"Get input count","d",GETONLY(count),}, 303 {"inputSum",0,PARAM_READONLY,"Full signal sum","f",GETONLY(sum),}, 304 {"weightedInputSum",0,PARAM_READONLY,"Full weighted signal sum","f",GETONLY(wsum),}, 305 305 {"getInputChannelCount",0,0,"Get channel count for input","p d(d input)",PROCEDURE(p_getchancount),}, 306 306 {"getInputStateChannel",0,0,"Get input signal from channel","p f(d input,d channel)",PROCEDURE(p_getchan),}, … … 313 313 {"currState",0,0,"Current neuron state (channel 0)","f",GETSET(cstate),"When read, it behaves just like the 'state' field.\nWhen written, changes the current neuron state immediately, which disturbs the regular synchronous NN operation.\nThis feature should only be used while controlling the neuron 'from outside' (like a neuro probe) and not in the neuron definition. See also: Neuro.hold",}, 314 314 {"setCurrStateChannel",0,0,"Set current neuron state for channel","p(d channel,f value)",PROCEDURE(p_setcstate),"Analogous to \"currState\"."}, 315 {"position_x",0, 0,"Position x","f",GETONLY(position_x),},316 {"position_y",0, 0,"Position y","f",GETONLY(position_y),},317 {"position_z",0, 0,"Position z","f",GETONLY(position_z),},318 {"creature",0, 0,"Gets owner creature","o Creature",GETONLY(creature),},319 {"part",0, 0,"The Part object where this neuron is located","o MechPart",GETONLY(part),},320 {"joint",0, 0,"The Joint object where this neuron is located","o MechJoint",GETONLY(joint),},321 {"fields",0, 0,"Custom neuron fields","o Fields",GETONLY(fields),315 {"position_x",0,PARAM_READONLY,"Position x","f",GETONLY(position_x),}, 316 {"position_y",0,PARAM_READONLY,"Position y","f",GETONLY(position_y),}, 317 {"position_z",0,PARAM_READONLY,"Position z","f",GETONLY(position_z),}, 318 {"creature",0,PARAM_READONLY,"Gets owner creature","o Creature",GETONLY(creature),}, 319 {"part",0,PARAM_READONLY,"The Part object where this neuron is located","o MechPart",GETONLY(part),}, 320 {"joint",0,PARAM_READONLY,"The Joint object where this neuron is located","o MechJoint",GETONLY(joint),}, 321 {"fields",0,PARAM_READONLY,"Custom neuron fields","o Fields",GETONLY(fields), 322 322 "Neurons can have different fields depending on their class. Script neurons have their fields defined using the \"prop:\" syntax. If you develop a custom neuron script you should use the Fields object for accessing your own neuron fields. The Neuro.fields property is meant for accessing the neuron fields from the outside script.\n" 323 323 "Examples:\n" … … 333 333 "for(i=0;i<iobj.properties;i++)\n" 334 334 " Simulator.print(iobj.getId(i)+\" (\"+iobj.getName(i)+\")\");",}, 335 {"def",0, 0,"Neuron definition from which this live neuron was built","o NeuroDef",GETONLY(neurodef),},336 {"classObject",0, 0,"Neuron class for this neuron","o NeuroClass",GETONLY(classObject),},335 {"def",0,PARAM_READONLY,"Neuron definition from which this live neuron was built","o NeuroDef",GETONLY(neurodef),}, 336 {"classObject",0,PARAM_READONLY,"Neuron class for this neuron","o NeuroClass",GETONLY(classObject),}, 337 337 #ifdef NEURO_SIGNALS 338 338 {"signals",0,PARAM_READONLY,"Signals","o NeuroSignals",FIELD(sigs_obj),},
Note: See TracChangeset
for help on using the changeset viewer.