These methods implement state, event, and transition behavior. They are synthesized based on the statechart. If you set the CG::Attribute/Event/File/Generalization/Operation/Relation::Generate property of the class to Cleared, they are not generated.
int class::state1Takeevent1() {
int res = eventNotConsumed;
SETPARAMS(hungry);
NOTIFY_TRANSITION_STARTED("2");
Transition code NOTIFY_TRANSITION_TERMINATED("2");
res = eventConsumed;
return res;
};