Description Usage Format Details Slots Built-in event functions Make an food_duration object from a Food Duration function See Also Examples
Food Duration functions are general functions for representing the duration of reinforcement.
1 2 3 |
The show method prints the function that is contained in the food_duration object as well as the type of object (i.e. "elemental") and the class (i.e. "food_duration" ).
In the CAB package, objects from classes like food_duration are called 'elemental' objects That is, they comprise a particular element of the simulation without any specified parameter values. 'Control' objects are elemental objects with an associated list of parameter values. Refer to class.DOR for information for putting a food_duration in a model.
The show method for the food_duration class can be removed with the function remove.food_duration.show() and reinstated with food_duration.show.
food_durationThis will contain a Food Duration function. See examples.
nameThe name of the food_duration object.
typeThis will be elemental because the food_duration is an elemental object.
A list of the built-in event functions. The function definitions can be seen by calling the name of the function without brackets. Each function returns the time after the food delivery.
constant_food_duration( food_duration, time )Food duration is a fixed constant.
food_duration object from a Food Duration functionUse the make.food_duration function to make a food_duration object.
make.food_duration( food_duration_fx, name )
food_duration_fxA function that represents the Food Duration of interest
nameA character vector specifying the name of your food_duration object
Returns a food_duration object.
make.control for making DOR_control objects.
set.custom_elemental for setting custom elemental classes.
make.custom_elemental for making custom elemental objects.
e_show for the function that is called by the show method.
class.elemental for the parent elemental class.
1 2 3 4 5 | # Make a food_duration object
# Look at the definition of the "constant_food_duration" Food Duration function
constant_food_duration
# Make a food_duration object out of the "constant_food_duration" Food Duration function
food_duration = make.food_duration( food_duration_fx = constant_food_duration, name = "food_duration" )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.