本文整理汇总了C#中Behavior.Save方法的典型用法代码示例。如果您正苦于以下问题:C# Behavior.Save方法的具体用法?C# Behavior.Save怎么用?C# Behavior.Save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Behavior
的用法示例。
在下文中一共展示了Behavior.Save方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PlusMazeBehavioralTestTypeAndBehaviors
public static void PlusMazeBehavioralTestTypeAndBehaviors()
{
var behavioralTestType = new BehavioralTestType { Name = "EPM", Description = "Elevated Plus Maze" };
behavioralTestType.Save();
var behavior = new Behavior
{
Name = "North Entry",
DefaultKeyStroke = "1",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
behavior = new Behavior
{
Name = "South Entry",
DefaultKeyStroke = "2",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
behavior = new Behavior
{
Name = "West Entry",
DefaultKeyStroke = "3",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
behavior = new Behavior
{
Name = "East Entry",
DefaultKeyStroke = "4",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
behavior = new Behavior
{
Name = "Center Entry",
DefaultKeyStroke = "5",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
behavior = new Behavior
{
Name = "Incomplete Closed Entry",
DefaultKeyStroke = "6",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.Instant
};
behavior.Save();
behavior = new Behavior
{
Name = "Incomplete Open Entry",
DefaultKeyStroke = "7",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.Instant
};
behavior.Save();
behavior = new Behavior
{
Name = "Incomplete Center Entry",
DefaultKeyStroke = "8",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.Instant
};
behavior.Save();
behavior = new Behavior
{
Name = "Protected Head Dip",
DefaultKeyStroke = "9",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.Instant
};
behavior.Save();
behavior = new Behavior
{
Name = "Unprotected Head Dip",
DefaultKeyStroke = "0",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.Instant
};
behavior.Save();
}
示例2: _FstBehavioralTestTypeAndBehaviors
private static void _FstBehavioralTestTypeAndBehaviors()
{
var behavioralTestType = new BehavioralTestType { Name = "FST", Description = "Forced Swimmend Test" };
behavioralTestType.Save();
var behavior = new Behavior
{
Name = "Climbing",
DefaultKeyStroke = "1",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
behavior = new Behavior
{
Name = "Swimming",
DefaultKeyStroke = "2",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
behavior = new Behavior
{
Name = "Floating",
DefaultKeyStroke = "3",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
behavior = new Behavior
{
Name = "Diving",
DefaultKeyStroke = "4",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
behavior = new Behavior
{
Name = "Head Swinging",
DefaultKeyStroke = "5",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.Instant
};
behavior.Save();
}
示例3: ObjectRecognitionBehavioralTestTypeAndBehaviors
public static void ObjectRecognitionBehavioralTestTypeAndBehaviors()
{
var behavioralTestType = new BehavioralTestType { Name = "Object Recognition", Description = "Object Recognition" };
behavioralTestType.Save();
var behavior = new Behavior
{
Name = "Object A",
DefaultKeyStroke = "1",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
behavior = new Behavior
{
Name = "Object B",
DefaultKeyStroke = "2",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
behavior = new Behavior
{
Name = "General Area",
DefaultKeyStroke = "3",
BehavioralTestType = behavioralTestType,
Type = Behavior.BehaviorType.State
};
behavior.Save();
}