The invention discloses a persistent
simulation method and device for a
Java Card simulator, and relates to the technical field of persistent
simulation. The method comprises the following steps: if a serialized object state does not exist, initializing a
Java Card simulator environment, traversing a target
object graph from a root node of the target
object graph during persistent
simulation of the
Java Card simulator, and creating
state representation of each object to be concerned; creating an object state
list according to the
state representation of each to-be-concerned object, and creating an instance reference relationship maintenance
list based on the object state
list; and analyzing the instance reference relationship maintenance list to obtain an instance loading sequence, and loading the application instance according to the instance loading sequence. According to the technical scheme provided by the embodiment of the invention, the development complexity during persistent simulation of the
Java Card simulator can be reduced, and a cross-instance reference scene can be accurately simulated.