/*
** 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 )
;
}
}