示例#1
0
文件: state.go 项目: hhkbp2/go-hsm
func NewStarState(super hsm.State) *StarState {
	object := &StarState{
		StateHead: hsm.NewStateHead(super),
	}
	super.AddChild(object)
	return object
}
示例#2
0
文件: state.go 项目: hhkbp2/go-hsm
func NewCommentState(super hsm.State) *CommentState {
	object := &CommentState{
		StateHead: hsm.NewStateHead(super),
	}
	super.AddChild(object)
	return object
}
示例#3
0
文件: state.go 项目: hhkbp2/go-hsm
func NewS1State(super hsm.State) *S1State {
	object := &S1State{
		NewVerboseStateHead(super),
	}
	object.VerboseStateHead.ID = object.ID()
	super.AddChild(object)
	return object
}
示例#4
0
文件: state.go 项目: hhkbp2/go-hsm
func NewCodeState(super hsm.State) *CodeState {
	// initialized CodeState
	object := &CodeState{
		StateHead:  hsm.NewStateHead(super),
		entryCount: 0,
		initCount:  0,
	}
	// hook up to super
	super.AddChild(object)
	return object
}