artisynth.core.modelbase
Class EmptyState

java.lang.Object
  extended by artisynth.core.modelbase.EmptyState
All Implemented Interfaces:
ComponentState, java.io.Serializable

public class EmptyState
extends java.lang.Object
implements ComponentState

See Also:
Serialized Form

Constructor Summary
EmptyState()
           
 
Method Summary
 ComponentState duplicate()
          Create a duplicate of this state which can be used for storing this state's values.
 boolean equals(ComponentState state)
          Returns true if this state equals another component state.
 void readBinary(java.io.DataInputStream dis)
          Read this state (in binary format) from a data input stream.
 void set(ComponentState state)
          Sets this state by copying the value from an existing state object.
 void writeBinary(java.io.DataOutputStream dos)
          Writes this state (in binary format) to a data output stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyState

public EmptyState()
Method Detail

writeBinary

public void writeBinary(java.io.DataOutputStream dos)
                 throws java.io.IOException
Writes this state (in binary format) to a data output stream. For the EmptyState, nothing is written.

Specified by:
writeBinary in interface ComponentState
Parameters:
dos - output stream to write model to
Throws:
java.io.IOException - if an I/O error occurred

readBinary

public void readBinary(java.io.DataInputStream dis)
                throws java.io.IOException
Read this state (in binary format) from a data input stream. For the EmptyState, nothing is read.

Specified by:
readBinary in interface ComponentState
Parameters:
dis - input stream to read model from
Throws:
java.io.IOException - if an I/O error occurred or if the input is incompatible with the current state configuration.

set

public void set(ComponentState state)
Sets this state by copying the value from an existing state object.

Specified by:
set in interface ComponentState
Parameters:
state - state object to copy
Throws:
java.lang.IllegalArgumentException - if the state objects are incompatible

equals

public boolean equals(ComponentState state)
Description copied from interface: ComponentState
Returns true if this state equals another component state.

Specified by:
equals in interface ComponentState
Parameters:
state - state to compare to

duplicate

public ComponentState duplicate()
Create a duplicate of this state which can be used for storing this state's values.

Specified by:
duplicate in interface ComponentState
Returns:
duplicate of this state