key0-96/
key0-96/doc/key/
key0-96/doc/key/credits/
key0-96/doc/key/developers/
key0-96/doc/key/developers/resources/
key0-96/setup/caves/
key0-96/setup/help/
key0-96/setup/ruins/
key0-96/src/
key0-96/src/commands/
key0-96/src/events/
key0-96/src/hack/
key0-96/src/sql/
key0-96/src/swing/
key0-96/src/talker/forest/
key0-96/src/talker/objects/
key0-96/src/terminals/
/*
**               j###t  ########## ####   ####
**              j###t   ########## ####   ####
**             j###T               "###L J###"
**          ######P'    ##########  #########
**          ######k,    ##########   T######T
**          ####~###L   ####
**          #### q###L  ##########   .#####
**          ####  \###L ##########   #####"
*/

package key.talker;

import key.*;
import key.primitive.DateTime;
import key.primitive.Duration;

import java.util.StringTokenizer;
import java.io.*;

/**
  *  Some sort of note
 */
public class Session extends Atom
{
	public static final int MAX_SUBJECT = 60;
	
	public static final AtomicElement[] ELEMENTS =
	{
		AtomicElement.construct( Session.class, Player.class,
			"by",
			AtomicElement.PUBLIC_FIELD,
			"the person who set the session" ),
		AtomicElement.construct( Session.class, String.class,
			"what", "what",
			AtomicElement.PUBLIC_FIELD,
			"the contents of the session",
			AtomicSpecial.StringLengthLimit( MAX_SUBJECT, false, true ) ),
		AtomicElement.construct( Session.class, DateTime.class,
			"when",
			AtomicElement.PUBLIC_FIELD,
			"the date the session was set" ),
		AtomicElement.construct( Session.class, Duration.class,
			"duration",
			AtomicElement.PUBLIC_FIELD,
			"the time between sessions" )
	};
	
	public static final AtomicStructure STRUCTURE = new AtomicStructure( Atom.STRUCTURE, ELEMENTS );
	
	public Reference by;
	public String what;
	public DateTime when;
	
	public Session()
	{
		by = Reference.EMPTY;
		what = "<no session>";
		when = null;
		
		setKey( "session" );
	}
	
	public AtomicStructure getDeclaredStructure()
	{
		return( STRUCTURE );
	}
	
	public void setSession( String w )
	{
		if( true )
			;
	}
}